cocos2d-x 3.4 eclipse android 编译是出现WindowsError: [Error 5] 的解决方法 assets

前端之家收集整理的这篇文章主要介绍了cocos2d-x 3.4 eclipse android 编译是出现WindowsError: [Error 5] 的解决方法 assets前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
python XXXXXXXXXXXXXXXXXXXXXXXX/proj.android/build_native.py -b release all
We will remove this script next version,you should use cocos console to build android project.


Traceback (most recent call last):
File "XXXXXXXXXXXXXXXXXXXXX/proj.android/build_native.py",line 149,in <module>
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File "XXXXXXXXXXXX/proj.android/build_native.py",line 119,in build
copy_resources(app_android_root)
File "XXXXXXXXXXXXXX/proj.android/build_native.py",line 104,in copy_resources
os.mkdir(assets_dir)
WindowsError: [Error 5] : 'XXXXXXXXXXXXXXXXXX\\proj.android\\assets'

The Selected NDK toolchain version was 4.9 !


这个问题嘛,好办。查找build_native.py的这一行:shutil.rmtree(assets_dir),后面加入time.sleep(3),记得import time


if os.path.isdir(assets_dir): shutil.rmtree(assets_dir) time.sleep(3)

原文链接:https://www.f2er.com/cocos2dx/339834.html

猜你在找的Cocos2d-x相关文章