Android NDK Are you sure your NDK_MODULE_PATH variable is properly defined


Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined

修改 D:\你项目的文件夹\build\jsb-binary\frameworks\runtime-src\proj.android\build-cfg.json 仔细检查里面的路径是否存在

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  externalNativeBuild {
ndkBuild {
if (!project.hasProperty("PROP_NDK_MODE") || PROP_NDK_MODE.compareTo('none') != 0) {
// skip the NDK Build step if PROP_NDK_MODE is none
targets 'cocos2djs'
arguments 'NDK_TOOLCHAIN_VERSION=clang'
// 请根据自己的 corator 路径进行相应修改,参考项目 as 根目录下 build-cfg.json
def module_paths = [project.file("C:/CocosDashboard_1.0.6/resources/.editors/Creator/2.4.2/resources/cocos2d-x"),
project.file("C:/CocosDashboard_1.0.6/resources/.editors/Creator/2.4.2/resources/cocos2d-x/cocos"),
project.file("C:/CocosDashboard_1.0.6/resources/.editors/Creator/2.4.2/resources/cocos2d-x/external")]
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
arguments 'NDK_MODULE_PATH=' + module_paths.join(";")
}
else {
arguments 'NDK_MODULE_PATH=' + module_paths.join(':')
}

arguments '-j' + Runtime.runtime.availableProcessors()
abiFilters.addAll(PROP_APP_ABI.split(':').collect{it as String})
}
}
}