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