[已解决]使用cocos code ide 打包APK 时报错

发布hello world 项目时 NDK 报错 如下: 在debug模式下能跑通。也能debug到手机上。就是发布 不了apk

Android NDK: ERROR:/Users/an/Documents/cocos/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file
/Users/an/Documents/cocos/android-ndk-r10b/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
Android NDK: Check that /Users/an/Documents/cocos/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/clang3.4/libs/armeabi/thumb/libgnustl_static.a exists or that its path is correct
make: Entering directory /Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android' make: Leaving directory /Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android’
Running command: compile
Building mode: debug
building native
NDK build mode: release
running: ‘/Users/an/Documents/cocos/android-ndk-r10b/ndk-build -C /Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android -j7 NDK_MODULE_PATH=/Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android/…/…/js-bindings:/Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android/…/…/js-bindings/cocos2d-x:/Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android/…/…/js-bindings/cocos2d-x/cocos:/Users/an/Documents/cocos/CocosJSGame1/frameworks/runtime-src/proj.android/…/…/js-bindings/cocos2d-x/external’

Ndk build failed!

出现了同样的问题,有谁知道咋解决的,跪求解决方案

ndk需要r9d

用r9d发布,成功了。多谢楼上指点。。。

1赞

:7: 恭喜恭喜

我用r9d还是一样问题,请问你是怎么解决的

用了r9d还是一样Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidMan
ifest.xml
Android NDK: ERROR:E:/MT/Tools/android_realMachine_env/android-ndk-r9d/sources/cxx-stl/gnu-libstdc++
/Android.mk:gnustl_static: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that E:/MT/Tools/android_realMachine_env/android-ndk-r9d/sources/cxx-stl/gnu-libs
tdc++/4.9/libs/armeabi/libgnustl_static.a exists or that its path is correct
make.exe: Entering directory F:/project32/ddyx/ddyx_base/frameworks/runtime-src/proj.android' E:/MT/Tools/android_realMachine_env/android-ndk-r9d/build/core/prebuilt-library.mk:45: *** Android N DK: Aborting . Stop. make.exe: Leaving directory F:/project32/ddyx/ddyx_base/frameworks/runtime-src/proj.android’
Error running command, return code: 2

1赞