项目在Windows下构建Android报错备忘

  1. cp: cannot stat '../cocoslocal_res/*': No such file or directory
    make_cocos.py
    cmd = "cp -rf " + from_local_assets_dir + "/* " + to_assets_dir + "/"

** 路径分隔符问题导致**

  1. m3eFileOpen(UI/Texture/Menu/0foxBG.PNG, rb) failed

  2. python ../cocos\frameworks\cocos2d-x\tools\cocos2d-console\bin\cocos.py luacompile -s "../cocos\src" -d "E:/RedGame/trunk/client/build/android/../..//cocos/frameworks/runtime-src/proj.android-studio/app/assets\src_64bit" --bytecode-64bit
    windows上缺少64位的luac.exe文件导致
    暂时注释掉
    trunk\client\cocos\frameworks\cocos2d-x\tools\cocos2d-console\plugins\plugin_luacompile\bin\lua\64bit

  3. 上面的问题都解决了,加载的时候还是缺少资源
    原因:看到E:\RedGame\trunk\client\art\tools\csd2csb_src目录下缺少csd2csb.exe文件
    临时解决方案:将散图拷贝一份放入资源包

你可能感兴趣的:(项目在Windows下构建Android报错备忘)