cocos打包的时候 ndk编译出错

执行python build_native.py”命令报错:

 

正在执行 ndk-build...

 

NDK 编译模式:debug

 

NDK_TOOLCHAIN_VERSION: 4.9

 

NDK 编译失败!

 

Traceback (most recent call last):

 

  File "build_native.py", line 43, in <module>

 

    build(opts.build_mode)

 

  File "build_native.py", line 28, in build

 

    raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")

 

Exception: Build dynamic library for project [ F:\Documents\Cocos\CocosProjects\CocosProject\proj.android\../ ] fails!

 

 

 

解决方法:

 

​环境变量中ndk不能包含中文。

 

posted on 2020-03-02 12:03  哈萨K  阅读(595)  评论(0编辑  收藏  举报