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