app中使用微信第三方登录闪退,出现启动activity失败。
2020-02-24 17:01:40.056 10019-10019/? E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory
java.lang.Throwable
at android.app.Instrumentation.getFactory(Instrumentation.java:1266)
at android.app.Instrumentation.newActivity(Instrumentation.java:1257)
at com.tencent.mm.splash.k.newActivity(SourceFile:58)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3676)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3952)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2386)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:8169)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
同问,微信就说是自己代码问题
小米10遇到了这个问题,请问如何解决
借贴同问,怎么解决啊?目前测了android9,10都报这个异常并闪退,android8可以正常调起。
清单文件中exported=true也没效果
2023-12-22 17:18:35.405 20348-20557/? E/NetdClient: querySockNetidForUid nid:0, uid:10432, command.cmdId:11, id:0
2023-12-22 17:18:35.415 25699-25699/? E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory
java.lang.Throwable
at android.app.Instrumentation.getFactory(Instrumentation.java:1306)
at android.app.Instrumentation.newActivity(Instrumentation.java:1297)
at com.tencent.mm.splash.SplashHackInstrumentation.newActivity(SourceFile:161)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3579)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3832)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:8014)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
--------- beginning of system
有人解决了微信授权登入,直接闪退客户端吗
检查是否是keystore签名的问题,在android studio中直接打包的apk包是没有签名文件的。
application中添加一下这个试一试: android:appComponentFactory="appComponentFactory" tools:replace="android:appComponentFactory">
一年后,我也碰到了这个问题
沃日 垃圾腾讯 出问题又不出来解决
E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory
java.lang.Throwable
at android.app.Instrumentation.getFactory(Instrumentation.java:1306)
at android.app.Instrumentation.newActivity(Instrumentation.java:1297)
at com.tencent.mm.splash.k.newActivity(SourceFile:61)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3418)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3645)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2227)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7748)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:508)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
先说一下我的现象,APP本地运行没问题,一打包运行就报这个错。
原因是微信sdk的混淆没配置