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 @H_502_0@ We will remove this script next version,you should use cocos console to build android project. @H_502_0@ @H_502_0@ @H_502_0@ Traceback (most recent call last): @H_502_0@ File "XXXXXXXXXXXXXXXXXXXXX/proj.android/build_native.py",line 149,in <module> @H_502_0@ build(opts.ndk_build_param,opts.android_platform,opts.build_mode) @H_502_0@ File "XXXXXXXXXXXX/proj.android/build_native.py",line 119,in build @H_502_0@ copy_resources(app_android_root) @H_502_0@ File "XXXXXXXXXXXXXX/proj.android/build_native.py",line 104,in copy_resources @H_502_0@ os.mkdir(assets_dir) @H_502_0@ WindowsError: [Error 5] : 'XXXXXXXXXXXXXXXXXX\\proj.android\\assets' @H_502_0@

The Selected NDK toolchain version was 4.9 !

@H_502_0@

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

@H_502_0@

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

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

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