任何遇到Uninitialized ActivityThread的朋友,除了包名,签名这些基础信息外,请检查manifest里面的Activity名称是否正确 微信官方demo中是: .wxapi.WXEntryActivity .wxapi.WXPayEntryActivity 注意:我在Unity中如此设置是不行的,必须带完整包名!!!如下 com.company.projectname.wxapi.WXEntryActivity com.company.projectname.wxapi.WXPayEntryActivity 被坑了很久,希望对各位有用
Android 10 微信支付 没反应Log打印的报错是这样的,不是很明白。 2021-02-26 11:43:52.162 26430-26430/? E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory java.lang.Throwable at android.app.Instrumentation.getFactory(Instrumentation.java:1273) at android.app.Instrumentation.newActivity(Instrumentation.java:1264) at com.tencent.mm.splash.k.newActivity(SourceFile:61) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3797) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4077) 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:2458) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8387) 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:1055) 2021-02-26 11:43:52.162 1006-1070/? E/emcomd: [EmcomXengine] EventCallback# AsEventCallback enEvent:0 2021-02-26 11:43:52.165 2621-2794/? E/AwareLog: SPKVolumeSchedFeature: Uid has been sent, ignore. 2021-02-26 11:43:52.220 2955-3278/? E/DollieAdapterService: notifyActivityState pkg:com.tencent.mm/com.tencent.mm.plugin.base.stub.WXPayEntryActivity state:2 fg:true mUid:10154 2021-02-26 11:43:52.228 26430-26430/? E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory java.lang.Throwable at android.app.Instrumentation.getFactory(Instrumentation.java:1273) at android.app.Instrumentation.newActivity(Instrumentation.java:1264) at com.tencent.mm.splash.k.newActivity(SourceFile:61) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3797) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4077) 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:2458) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8387) 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:1055)
2022-05-09