D:\cocos2dx\cocos2d-x-3.10\tools\cocos2d-console\bin\cocos.bat compile -p android --android-studio --ap android-20
Updated project.properties
Updated local.properties
Updated file F:\guizhou\GYZJ_NEW\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Updated project.properties
Updated local.properties
Updated file F:\guizhou\GYZJ_NEW\cocos2d\cocos\platform\android\java\proguard-project.txt
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 14 in ./AndroidManifest.xml
make.exe: Entering directory F:/guizhou/GYZJ_NEW/proj.android' [armeabi] StaticLibrary : libcocos2d.a [armeabi] StaticLibrary : libandroid_support.a [armeabi] StaticLibrary : libcocostudio.a [armeabi] StaticLibrary : libcocosbuilder.a [armeabi] StaticLibrary : libcocos3d.a [armeabi] StaticLibrary : libspine.a [armeabi] StaticLibrary : libui.a [armeabi] StaticLibrary : libcocosdenshion.a [armeabi] StaticLibrary : flatbuffers.a [armeabi] StaticLibrary : libextension.a [armeabi] StaticLibrary : libaudioengine.a [armeabi] StaticLibrary : libbox2d.a [armeabi] StaticLibrary : libnetwork.a [armeabi] StaticLibrary : libcocos2dxinternal.a [armeabi] StaticLibrary : librecast.a [armeabi] StaticLibrary : libbullet.a [armeabi] StaticLibrary : libcocos2dandroid.a [armeabi] StaticLibrary : libcpufeatures.a [armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver [armeabi] Gdbsetup : libs/armeabi/gdb.setup [armeabi] SharedLibrary : libcocos2dcpp.so F:/android-sdk/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.exe: error: F:/android-sdk/android-sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/thumb/libgnustl_static.a(math_stubs_long_double.o): multiple definition of 'frexpl' F:/android-sdk/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/libandroid_support.a(frexpl.o): previous definition here collect2.exe: error: ld returned 1 exit status make.exe: *** [obj/local/armeabi/libcocos2dcpp.so] Error 1 make.exe: Leaving directory
F:/guizhou/GYZJ_NEW/proj.android’
编译模式:debug
使用 Eclipse 工程:F:\guizhou\GYZJ_NEW\proj.android
正在执行:’“F:\android-sdk\android-sdk\tools\android” update project -t android-20 -p F:\guizhou\GYZJ_NEW\proj.android’
正在执行:’“F:\android-sdk\android-sdk\tools\android” update lib-project -p F:\guizhou\GYZJ_NEW\cocos2d\cocos\platform\android\java -t android-20’
正在执行 ndk-build…
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:’“F:\android-sdk\android-sdk\ndk-bundle\ndk-build” -C F:\guizhou\GYZJ_NEW\proj.android -j8 NDK_MODULE_PATH=F:\guizhou\GYZJ_NEW\proj.android…/cocos2d;F:\guizhou\GYZJ_NEW\proj.android…/cocos2d/cocos;F:\guizhou\GYZJ_NEW\proj.android…/cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1’
执行命令出错,返回值:2。
Process finished with exit code 14
环境:jdk:1.8 、ndk:r10e 、cocosd2x:3.10、android:api20(安卓4.4)、android studio 最新版本
望大佬指点