3.5一切顺利,升级到3.6之后,iOS也很顺利,但是安卓这边有了奇怪的问题,利用cocos compile -p android
能够顺利编译,但是安装后报告错误:
********** Crash dump: **********
Build fingerprint: ‘Huawei/PE-TL10/hwPE:4.4.2/HuaweiPE-TL10/CHNC00B186:user/ota-rel-keys,release-keys’
pid: 29062, tid: 29078, name: Thread-5523 >>> com.xxx.yyy <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Stack frame #00 pc 000221b0 /system/lib/libc.so (tgkill+12)
Stack frame #01 pc 0001326d /system/lib/libc.so (pthread_kill+48)
Stack frame #02 pc 00013481 /system/lib/libc.so (raise+10)
Stack frame #03 pc 000121b7 /system/lib/libc.so
Stack frame #04 pc 00021a64 /system/lib/libc.so (abort+4)
Stack frame #05 pc 00046df7 /system/lib/libdvm.so (dvmAbort+78)
Stack frame #06 pc 0004b71d /system/lib/libdvm.so (dvmDecodeIndirectRef(Thread*, _jobject*)+164)
Stack frame #07 pc 0004c7f1 /system/lib/libdvm.so
Stack frame #08 pc 0058afdc /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (JNIEnv::GetStaticMethodID(jclass*, char const*, char const*)+56): Routine JNIEnv::GetStaticMethodID(jclass*, char const*, char const*) at /Users/Huw/Documents/Development/android-ndk-r10e/platforms/android-19/arch-arm/usr/include/jni.h:760
Stack frame #09 pc 0058b6d0 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo&, char const*, char const*, char const*)+224): Routine cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo&, char const*, char const*, char const*) at /Users/Huw/Documents/GameStudio/PopDeluxe/proj.android/…/cocos2d/cocos/platform/android/jni/JniHelper.cpp:176
Stack frame #10 pc 005b180c /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (CocosDenshion::android::AndroidJavaEngine::getJNIStaticMethodInfo(cocos2d::JniMethodInfo&, char const*, char const*)+48): Routine CocosDenshion::android::AndroidJavaEngine::getJNIStaticMethodInfo(cocos2d::JniMethodInfo&, char const*, char const*) at /Users/Huw/Documents/GameStudio/PopDeluxe/proj.android/…/cocos2d/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp:48
Stack frame #11 pc 005b2318 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (CocosDenshion::android::AndroidJavaEngine::setEffectsVolume(float)+76): Routine CocosDenshion::android::AndroidJavaEngine::setEffectsVolume(float) at /Users/Huw/Documents/GameStudio/PopDeluxe/proj.android/…/cocos2d/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp:198
Stack frame #12 pc 004afd88 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (GameSoundManager::init()+76): Routine GameSoundManager::init() at /Users/Huw/Documents/GameStudio/PopDeluxe/proj.android/jni/…/…/Classes/GameSoundManager.cpp:353
Stack frame #13 pc 004afc90 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (GameSoundManager::getInstance()+148): Routine GameSoundManager::getInstance() at /Users/Huw/Documents/GameStudio/PopDeluxe/proj.android/jni/…/…/Classes/GameSoundManager.cpp:322
Stack frame #00 pc 000221b0 /system/lib/libc.so (tgkill+12) }{stackFuzzy, #00 pc 000221b0 /system/lib/libc.so (tgkill+12),#01 pc 0001326d /system/lib/libc.so (pthread_kill+48),#02 pc 00013481 /system/lib/libc.so (raise+10),#03 pc 000121b7 /system/lib/libc.so,#04 pc 00021a64 /system/lib/libc.so (abort+4),#05 pc 00046df7 /system/lib/libdvm.so (dvmAbort+78),#06 pc 0004b71d /system/lib/libdvm.so (dvmDecodeIndirectRef(Thread*, _jobject*)+164),#07 pc 0004c7f1 /system/lib/libdvm.so,#08 pc 0058afdc /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (JNIEnv::GetStaticMethodID(jclass*, char const*, char const*)+56),#09 pc 0058b6d0 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (cocos2d::JniHelper::getStaticMethodInfo(cocos2d::JniMethodInfo&, char const*, char const*, char const*)+224),#10 pc 005b180c /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (CocosDenshion::android::AndroidJavaEngine::getJNIStaticMethodInfo(cocos2d::JniMethodInfo&, char const*, char const*)+48),#11 pc 005b2318 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (CocosDenshion::android::AndroidJavaEngine::setEffectsVolume(float)+76),#12 pc 004afd88 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (GameSoundManager::init()+76),#13 pc 004afc90 /data/app-lib/com.xxx.yyy-1/libcocos2dcpp.so (GameSoundManager::getInstance()+148) }
说是JNI这边有错,但实在不知道怎么解决,而3.6下的test示例却执行正常,所以应该不是android sdk等配置的原因,请大神指点,哭求!!