-
Creator 版本:1.9.3
-
目标平台:
-
详细报错信息,包含调用堆栈:
-
重现方式:点击微信的时候闪退
-
之前哪个版本是正常的 :1.6.1
-
手机型号 :小米
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :
-
出现概率:100%
-
额外线索:
之前用1.6.1打包是可以正常吊起微信登录的,creator换成1.9.3之后打包 只要点微信登录就直接闪退 其他都是可以,一点微信登录就闪退 求大神告知什么问题啊 研究好几天 好急啊
Creator 版本:1.9.3
目标平台:
详细报错信息,包含调用堆栈:
重现方式:点击微信的时候闪退
之前哪个版本是正常的 :1.6.1
手机型号 :小米
手机浏览器 :
编辑器操作系统 :
编辑器之前是否有其它报错 :
出现概率:100%
额外线索:
之前用1.6.1打包是可以正常吊起微信登录的,creator换成1.9.3之后打包 只要点微信登录就直接闪退 其他都是可以,一点微信登录就闪退 求大神告知什么问题啊 研究好几天 好急啊
报错信息提供一下
29 16:54:18.315 21709-21760/? A/art: art/runtime/runtime.cc:289] Runtime aborting…
art/runtime/runtime.cc:289] Aborting thread:
art/runtime/runtime.cc:289] “GLThread 525006” prio=5 tid=21 Runnable
art/runtime/runtime.cc:289] | group="" sCount=0 dsCount=0 obj=0x12c10400 self=0xab2b6730
art/runtime/runtime.cc:289] | sysTid=21760 nice=0 cgrp=default sched=0/0 handle=0xab2b6d00
art/runtime/runtime.cc:289] | state=R schedstat=( 8801690818 1234700105 7550 ) utm=787 stm=93 core=2 HZ=100
art/runtime/runtime.cc:289] | stack=0x6f4a0000-0x6f4a2000 stackSize=1036KB
art/runtime/runtime.cc:289] | held mutexes= “abort lock” “mutator lock”(shared held)
art/runtime/runtime.cc:289] native: #00 pc 00004a28 /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23)
art/runtime/runtime.cc:289] native: #01 pc 000030cd /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8)
art/runtime/runtime.cc:289] native: #02 pc 00258371 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68)
art/runtime/runtime.cc:289] native: #03 pc 002391e9 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+144)
art/runtime/runtime.cc:289] native: #04 pc 00228507 /system/lib/libart.so (_ZN3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+22)
art/runtime/runtime.cc:289] native: #05 pc 00228745 /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+324)
art/runtime/runtime.cc:289] native: #06 pc 00228939 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+72)
art/runtime/runtime.cc:289] native: #07 pc 000a7cb7 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1322)
art/runtime/runtime.cc:289] native: #08 pc 00162d33 /system/lib/libart.so (_ZN3art22IndirectReferenceTable17AbortIfNoCheckJNIEv+66)
art/runtime/runtime.cc:289] native: #09 pc 00239cd9 /system/lib/libart.so (_ZNK3art6Thread13DecodeJObjectEP8_jobject+608)
art/runtime/runtime.cc:289] native: #10 pc 002225b9 /system/lib/libart.so (_ZN3art17InvokeWithVarArgsERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDSt9__va_list+184)
art/runtime/runtime.cc:289] native: #11 pc 001a29df /system/lib/libart.so (_ZN3art3JNI21CallStaticVoidMethodVEP7_JNIEnvP7_jclassP10_jmethodIDSt9__va_list+278)
art/runtime/runtime.cc:289] native: #12 pc 0074dcf4 /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (_ZN7_JNIEnv20CallStaticVoidMethodEP7_jclassP10_jmethodIDz+52)
art/runtime/runtime.cc:289] native: #13 pc 00e98c24 /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (_ZN20JavaScriptJavaBridge8CallInfo7executeEv+228)
art/runtime/runtime.cc:289] native: #14 pc 00e9a290 /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (_Z45JavaScriptJavaBridge_callStaticMethodRegistryRKN2v820FunctionCallbackInfoINS_5ValueEEE+3036)
art/runtime/runtime.cc:289] native: #15 pc 0027c5d7 /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (???)
art/runtime/runtime.cc:289] native: #16 pc 002d4dbd /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (???)
art/runtime/runtime.cc:289] native: #17 pc 002d50ad /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (???)
art/runtime/runtime.cc:289] native: #18 pc 002d52a9 /data/app/com.dmghy.zgqp-1/lib/arm/libcocos2djs.so (???)
art/runtime/runtime.cc:289] native: #19 pc 00000098 (???)
art/runtime/runtime.cc:289] at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native method)
art/runtime/runtime.cc:289] at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:128)
art/runtime/runtime.cc:289] at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:287)
10-29 16:54:18.645 1258-3426/? W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@50255ba does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9204)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9195)
at com.android.server.wm.WindowManagerService.relayoutWindow(WindowManagerService.java:3402)
at com.android.server.wm.Session.relayout(Session.java:207)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:273)
at com.android.server.wm.Session.onTransact(Session.java:140)
at android.os.Binder.execTransact(Binder.java:446)
10-29 16:54:18.655 1258-3425/? W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@1ff95c6b does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9204)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9195)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2840)
at com.android.server.wm.Session.remove(Session.java:197)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:233)
at com.android.server.wm.Session.onTransact(Session.java:140)
at android.os.Binder.execTransact(Binder.java:446)
有点多 不晓得从哪截取了~~
你好 这些错能看出来什么问题么~
你尝试下删除项目中的除了assets之外的文件夹 然后重新打包
你检查下模块设置是否正确 然后在微信开发者工具平台上的右边的设置中是否正确 如果引用了插件 试试看把es6转es5关掉看看
额,抱歉啊 我没描述清楚 我这个是原生打包安卓的掉的安卓sdk微信登录
不是微信小游戏 我的调用代码 jsb.reflection.callStaticMethod(‘com/dmghy/zgqp/WXAPI’, “requestLogin”, “(Ljava/lang/String;)V”,‘js call requestLogin!!!’);
安卓的实现代码public static void requestLogin(final String strPlatform) {
System.out.print("-----------------------------requestLogin–"+strPlatform+"----------------------------------");
boolean isInstalledAndSupported = checkIsWXAppInstalled();
if(isInstalledAndSupported == false){
int not_installed_or_supported_ret = 1;
Log.d("zgqp","-----------------------------requestLogin not_installed_or_supported_ret--------------");
Cocos2dxJavascriptJavaBridge.evalString("cc.vv.anysdkMgr.onLoginRespCancel('"+ not_installed_or_supported_ret +"')");
return;
}
Log.d("zgqp", "msg.what == HANDLER_LOGIN_RSP");
isLogin = true;
final SendAuth.Req req = new SendAuth.Req();
req.scope = "snsapi_userinfo";
req.state = "carjob_wx_login";
api.sendReq(req);
System.out.println("--------------------ss---------requestLogin----------------------------------");
}
可以保证路径 调用方法都是可以的 同样的代码在1.6.1上就可以正常调用 ,但是换成1.9.3之后 调用这个安卓代码就报错,我尝试过吧安卓函数里的方法都删除 只打log也是直接崩溃,所以我怀疑是不是jsb.reflection.callStaticMethod这个方法 在1.6.1和1.9.3里是不是不一样了啊
帅哥处理好了吗 我也碰到这样的问题