@704370441 写道:
首先,创建一个模板工程,然后打包安卓,只勾选armeabi-v7a,在mumu模拟器上,会闪退,但是V2.1.2的版本,并不会,现在必须要勾选x86的模式,在mumu模拟器上才不会闪退,V2.1.2就不用勾选,麻烦大佬看看,因为不勾选x86
,mumu模拟器会闪退,但是勾选了,又没有x86_64,上不了google平台,现在不知道怎么搞了!!!!
下面的是闪退日志:
01-17 16:29:44.920 1491-1491/? I/art: Late-enabling -Xcheck:jni
01-17 16:29:44.920 1491-1491/? I/art: Late-enabling JIT
01-17 16:29:44.920 1491-1491/? D/libnb: enter native_bridge2_initialize /data/user/0/com.game.in/code_cache arm
01-17 16:29:44.921 1491-1491/? D/houdini: [1491] Initialize library(version: 6.1.2d_x.48748 RELEASE)... successfully.
01-17 16:29:44.964 1491-1491/? W/art: Unexpected CPU variant for X86 using defaults: x86
01-17 16:29:44.965 1491-1491/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000
01-17 16:29:44.977 1491-1491/? I/Zygote: fake Product info com.game.in not matched any pattern
01-17 16:29:45.161 1491-1491/com.game.in V/libnb: enter native_bridge2_isSupported /data/app/com.game.in-1/lib/arm/libBugly.so
01-17 16:29:45.161 1491-1491/com.game.in D/libnb: enter native_bridge2_loadLibrary /data/app/com.game.in-1/lib/arm/libBugly.so
01-17 16:29:45.316 1491-1491/com.game.in D/houdini: [1491] Added shared library /system/lib/arm/libarm_hook.so for ClassLoader by Native Bridge.
01-17 16:29:45.365 1491-1491/com.game.in D/houdini: [1491] Added shared library /data/app/com.game.in-1/lib/arm/libBugly.so for ClassLoader by Native Bridge.
01-17 16:29:45.365 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline JNI_OnLoad
01-17 16:29:45.370 1491-1491/com.game.in E/CrashReport-Native: current stack have not bugly line,return default prefix
01-17 16:29:45.372 1491-1491/com.game.in V/libnb: enter native_bridge2_isSupported /data/app/com.game.in-1/lib/arm/libfmod.so
01-17 16:29:45.372 1491-1491/com.game.in D/libnb: enter native_bridge2_loadLibrary /data/app/com.game.in-1/lib/arm/libfmod.so
01-17 16:29:45.420 1491-1491/com.game.in D/houdini: [1491] Added shared library /data/app/com.game.in-1/lib/arm/libfmod.so for ClassLoader by Native Bridge.
01-17 16:29:45.420 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline JNI_OnLoad
01-17 16:29:45.420 1491-1491/com.game.in V/libnb: enter native_bridge2_isSupported /data/app/com.game.in-1/lib/arm/libfmodL.so
01-17 16:29:45.420 1491-1491/com.game.in D/libnb: enter native_bridge2_loadLibrary /data/app/com.game.in-1/lib/arm/libfmodL.so
01-17 16:29:45.426 1491-1491/com.game.in D/houdini: [1491] Added shared library /data/app/com.game.in-1/lib/arm/libfmodL.so for ClassLoader by Native Bridge.
01-17 16:29:45.426 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline JNI_OnLoad
01-17 16:29:45.428 1491-1491/com.game.in D/Cocos2dxActivity: Cocos2dxActivity onCreate: org.cocos2dx.javascript.AppActivity@7f1eeed, savedInstanceState: null
01-17 16:29:45.428 1491-1491/com.game.in D/Activity: on create, cpu abi: armeabi-v7a, brand: Meizu
01-17 16:29:45.433 1491-1491/com.game.in V/libnb: enter native_bridge2_isSupported /data/app/com.game.in-1/lib/arm/libcocos2djs.so
01-17 16:29:45.433 1491-1491/com.game.in D/libnb: enter native_bridge2_loadLibrary /data/app/com.game.in-1/lib/arm/libcocos2djs.so
01-17 16:29:45.547 1491-1491/com.game.in D/houdini: [1491] Added shared library /data/app/com.game.in-1/lib/arm/libcocos2djs.so for ClassLoader by Native Bridge.
01-17 16:29:45.547 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline JNI_OnLoad
01-17 16:29:45.547 1491-1491/com.game.in D/JniHelper: JniHelper::setJavaVM(0xb2d41404), pthread_self() = -1217418240
01-17 16:29:45.547 1491-1491/com.game.in D/main: cocos_jni_env_init
01-17 16:29:45.548 1491-1491/com.game.in D/Cocos2dxHelper: isSupportLowLatency:true
01-17 16:29:45.550 1491-1491/com.game.in D/Cocos2dxHelper: sampleRate: 44100, framesPerBuffer: 512
01-17 16:29:45.550 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetAudioDeviceInfo
01-17 16:29:45.550 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetAudioDeviceInfo__ZII
01-17 16:29:45.550 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetAudioDeviceInfo
01-17 16:29:45.550 1491-1491/com.game.in D/JniImp: nativeSetAudioDeviceInfo: sampleRate: 44100, bufferSizeInFrames: 512
01-17 16:29:45.553 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath
01-17 16:29:45.553 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath__Ljava_lang_String_2
01-17 16:29:45.553 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath
01-17 16:29:45.555 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetContext
01-17 16:29:45.555 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetContext__Landroid_content_Context_2Landroid_content_res_AssetManager_2
01-17 16:29:45.555 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetContext
01-17 16:29:45.558 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxActivity_getGLContextAttrs
01-17 16:29:45.558 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxActivity_getGLContextAttrs__
01-17 16:29:45.558 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxActivity_getGLContextAttrs
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: org.json.JSONException: No value for serviceClassPath
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.json.JSONObject.get(JSONObject.java:389)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.json.JSONObject.getJSONArray(JSONObject.java:584)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.javascript.SDKWrapper.loadSDKClass(SDKWrapper.java:70)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.javascript.SDKWrapper.setGLSurfaceView(SDKWrapper.java:102)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.javascript.AppActivity.onCreateView(AppActivity.java:53)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.addSurfaceView(Cocos2dxActivity.java:446)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.init(Cocos2dxActivity.java:261)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:338)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:38)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.Activity.performCreate(Activity.java:6279)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2396)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2503)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.ActivityThread.-wrap11(ActivityThread.java)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.os.Looper.loop(Looper.java:148)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5539)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at java.lang.reflect.Method.invoke(Native Method)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745)
01-17 16:29:45.569 1491-1491/com.game.in W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:635)
01-17 16:29:45.569 1491-1491/com.game.in D/Cocos2dxActivity: model=Pro 7
01-17 16:29:45.569 1491-1491/com.game.in D/Cocos2dxActivity: product=Pro 7
01-17 16:29:45.569 1491-1491/com.game.in D/Cocos2dxActivity: isEmulator=false
01-17 16:29:45.615 1491-1491/com.game.in D/Cocos2dxActivity: onResume()
01-17 16:29:45.617 1491-1546/com.game.in D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-17 16:29:45.829 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxGLSurfaceView_nativeOnSizeChanged
01-17 16:29:45.829 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxGLSurfaceView_nativeOnSizeChanged__II
01-17 16:29:45.829 1491-1491/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxGLSurfaceView_nativeOnSizeChanged
01-17 16:29:45.842 1491-1546/com.game.in D/libEGL: loaded /system/lib/egl/libEGL_emulation.so
01-17 16:29:45.926 1491-1546/com.game.in D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so
01-17 16:29:45.928 1491-1546/com.game.in D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so
01-17 16:29:45.930 1491-1546/com.game.in I/OpenGLRenderer: Initialized EGL, version 1.4
01-17 16:29:45.977 1491-1546/com.game.in W/EGL_emulation: eglSurfaceAttrib not implemented
01-17 16:29:45.977 1491-1546/com.game.in W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaa9c3900, error=EGL_SUCCESS
01-17 16:29:45.991 1491-1491/com.game.in D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
01-17 16:29:45.996 1491-1545/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit
01-17 16:29:45.996 1491-1545/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit__IILjava_lang_String_2
01-17 16:29:45.996 1491-1545/com.game.in V/libnb: enter native_bridge2_getTrampoline Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit
01-17 16:29:45.997 1491-1545/com.game.in D/main: cocos_android_app_init
01-17 16:29:46.062 1491-1545/com.game.in D/JniImp: nativeInit: 478, 850,
01-17 16:29:46.069 1491-1545/com.game.in I/CrashReport: [cocos2d-x] start init.
01-17 16:29:46.069 1491-1545/com.game.in D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -1573938896
01-17 16:29:46.069 1491-1545/com.game.in D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -1573938896
01-17 16:29:46.070 1491-1545/com.game.in I/CrashReport: [cocos2d-x] trying to call method: setGameType
01-17 16:29:46.070 1491-1545/com.game.in I/CrashReport: [cocos2d-x] init Bugly by game agent.
01-17 16:29:46.070 1491-1545/com.game.in I/CrashReport: [cocos2d-x] trying to call method: initCrashReport
01-17 16:29:46.114 1491-1545/com.game.in D/cocos2d-x: find in flash memory dirPath(/data/user/0/com.game.in/files/update)
01-17 16:29:46.122 1491-1491/com.game.in W/art: Method processed more than once: java.lang.String com.tencent.bugly.crashreport.common.info.AppInfo.a(int)
01-17 16:29:46.501 1491-1575/com.game.in W/art: Method processed more than once: java.lang.String com.tencent.bugly.proguard.i.b(int, boolean)
01-17 16:29:47.159 1491-1545/com.game.in D/jswrapper: JS: Enable batch GL commands optimization!
01-17 16:29:48.184 1491-1545/com.game.in D/houdini: [1545] Unsupported feature (ID:0x20e000b2).--------- beginning of crash
01-17 16:29:48.184 1491-1545/com.game.in A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xdead0000 in tid 1545 (GLThread 84)
帖子: 7
参与者: 1