環(huán)境:
CocosCreator 1.4.1
Ndk:r14b
日志如下:
編譯模式:release
使用 Eclipse 工程:E:\HengShui2client\build\jsb-binary\frameworks\runtime-src\proj.android
正在執(zhí)行:'"C:\Users\Administrator\Downloads\adt-bundle-windows-x86-20130917.467161976\adt-bundle-windows-x86-20130917\sdk\tools\android" update project -t android-23 -p E:\HengShui2client\build\jsb-binary\frameworks\runtime-src\proj.android'
Updated project.properties
Updated local.properties
Updated file E:\HengShui2client\build\jsb-binary\frameworks\runtime-src\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
正在執(zhí)行 ndk-build...
NDK 編譯模式:release
正在執(zhí)行:'"E:\android-ndk-r14b-windows-x86_64\android-ndk-r14b\ndk-build" -C E:\HengShui2client\build\jsb-binary\frameworks\runtime-src\proj.android -j4 APP_ABI="armeabi armeabi-v7a" NDK_MODULE_PATH=D:/CocosCreator/resources/cocos2d-x;D:/CocosCreator/resources/cocos2d-x/cocos;D:/CocosCreator/resources/cocos2d-x/external;D:/CocosCreator/resources/cocos2d-x/external/android/include;D:/CocosCreator/resources/cocos2d-x/external/android/spidermonkey NDK_TOOLCHAIN_VERSION=4.9'
Android NDK: WARNING: APP_PLATFORM android-23 is larger than android:minSdkVersion 11 in ./AndroidManifest.xml
Android NDK: WARNING: Ignoring unknown import directory: D:/CocosCreator/resources/cocos2d-x/external/android/include
Android NDK: WARNING: Ignoring unknown import directory: D:/CocosCreator/resources/cocos2d-x/external/android/spidermonkey
make: Entering directory `E:/HengShui2client/build/jsb-binary/frameworks/runtime-src/proj.android'
E:/android-ndk-r14b-windows-x86_64/android-ndk-r14b/build//../build/core/build-binary.mk:687: Android NDK: Module cocos2djs_shared depends on undefined modules: cocos2d_js_android_static log
make: Leaving directory `E:/HengShui2client/build/jsb-binary/frameworks/runtime-src/proj.android'
E:/android-ndk-r14b-windows-x86_64/android-ndk-r14b/build//../build/core/build-binary.mk:700: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies)? ? .? Stop.
執(zhí)行命令出錯(cuò)橘原,返回值:2籍铁。
搜了一下,網(wǎng)上說要換ndk趾断,換成了r10e拒名,OK了
注意:換了ndk之后,記得重新構(gòu)建一次芋酌,再點(diǎn)編譯
不知道為什么增显,我構(gòu)建了好幾次,才編譯成功
如果還是失敗脐帝,看看自己的簽名文件對應(yīng)的別名和密鑰對不對