Cocos2d-x v3.12 + ndkandroid-ndk-r12b,这两个都是当前最新版本,新建项目后,编译安卓apk时候悲剧了,报错如下:

Android NDK:ERROR:E:\Cocos2d\projects\LearnCocos\frameworks\runtime-src\proj.an

droid\../../cocos2d-x/external/freetype2/prebuilt/android/Android.mk:cocos_freet

ype2_static:LOCAL_SRC_FILES points to a missing file

Android NDK:Check that E:/Cocos2d/projects/LearnCocos/frameworks/runtime-src/pr

oj.android/../../cocos2d-x/external/freetype2/prebuilt/android/arm64-v8a/libfree

type.aexists  or that its path is correct

make: Enteringdirectory `E:/Cocos2d/projects/LearnCocos/frameworks/runtime-src/

proj.android'

E:/Cocos2d/android-ndk-r12b/build//../build/core/prebuilt-library.mk:45:*** And

roid NDK:Aborting    .  Stop.

make: Leavingdirectory `E:/Cocos2d/projects/LearnCocos/frameworks/runtime-src/p

roj.android'

执行命令出错,返回值:2

经过网上搜索好久未找到有效解决办法。可能是当前版本cocos对ndk r12b支持不是太好,最后使用android-ndk-r11c,可以正常编译。顺便分享一个ndk r11c的百度网盘链接:http://pan.baidu.com/s/1o8LCnhS