Cocos Code IDE 打包apk 构建失败

Updated project.properties
Updated local.properties
Updated file D:\CocosProjects\CocosLuaGame\frameworks\runtime-src\proj.android\proguard-project.txt
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
Android NDK: WARNING:jni/Android.mk:cocos2dlua_shared: non-system libraries in linker flags: -lc++_static
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in D:\Cocos\frameworks\cocos2d-x/cocos//./prebuilt-mk/Android.mk for module cocos2dx_static
Android NDK: …/…/prebuilt/android/armeabi/libcocos2d.a
make.exe: Entering directory D:/CocosProjects/CocosLuaGame/frameworks/runtime-src/proj.android' StaticLibrary : libcocos2d.a StaticLibrary : libcpufeatures.a SharedLibrary : libcocos2dlua.so jni/../../Classes/runtime/Runtime.cpp:736: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' jni/../../Classes/runtime/Runtime.cpp:740: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' jni/../../Classes/runtime/Runtime.cpp:755: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' jni/../../Classes/runtime/Runtime.cpp:761: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) make.exe: *** Error 1 make.exe: Leaving directory D:/CocosProjects/CocosLuaGame/frameworks/runtime-src/proj.android’
Running command: compile
Building mode: debug
running: ‘“D:\sdk\tools\android” update project -t android-19 -p D:\CocosProjects\CocosLuaGame\frameworks\runtime-src\proj.android’

building native
NDK build mode: release
running: ‘D:\androidtool\android-ndk-r9d\ndk-build -C D:\CocosProjects\CocosLuaGame\frameworks\runtime-src\proj.android -j3 NDK_MODULE_PATH=D:\Cocos\frameworks\cocos2d-x;D:\Cocos\frameworks\cocos2d-x/cocos/;D:\Cocos\frameworks\cocos2d-x/external;D:\Cocos\frameworks\cocos2d-x/cocos/scripting’

Ndk build failed!
Updated project.properties
Updated local.properties
Updated file D:\CocosProjects\CocosLuaGame\frameworks\runtime-src\proj.android\proguard-project.txt
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
Android NDK: WARNING:jni/Android.mk:cocos2dlua_shared: non-system libraries in linker flags: -lc++_static
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in D:\Cocos\frameworks\cocos2d-x/cocos//./prebuilt-mk/Android.mk for module cocos2dx_static
Android NDK: …/…/prebuilt/android/armeabi/libcocos2d.a
make.exe: Entering directory D:/CocosProjects/CocosLuaGame/frameworks/runtime-src/proj.android' StaticLibrary : libcocos2d.a StaticLibrary : libcpufeatures.a SharedLibrary : libcocos2dlua.so jni/../../Classes/runtime/Runtime.cpp:736: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' jni/../../Classes/runtime/Runtime.cpp:740: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' jni/../../Classes/runtime/Runtime.cpp:755: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' jni/../../Classes/runtime/Runtime.cpp:761: error: undefined reference to 'cocos2d::Image::initWithImageData(unsigned char const*, int)' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) make.exe: *** Error 1 make.exe: Leaving directory D:/CocosProjects/CocosLuaGame/frameworks/runtime-src/proj.android’
Running command: compile
Building mode: debug
running: ‘“D:\sdk\tools\android” update project -t android-19 -p D:\CocosProjects\CocosLuaGame\frameworks\runtime-src\proj.android’

building native
NDK build mode: release
running: ‘D:\androidtool\android-ndk-r9d\ndk-build -C D:\CocosProjects\CocosLuaGame\frameworks\runtime-src\proj.android -j3 NDK_MODULE_PATH=D:\Cocos\frameworks\cocos2d-x;D:\Cocos\frameworks\cocos2d-x/cocos/;D:\Cocos\frameworks\cocos2d-x/external;D:\Cocos\frameworks\cocos2d-x/cocos/scripting’

Ndk build failed!

:2: 这种问题从哪里查起?

家里同样的配置可以打包

建议将android工程中,obj,bin等临时文件夹删除,然后再次进行编译

请明示大神~:904: