问题自己结了,是因为应用的appid服务端传错了,重新更换为正确的appid就可以了。 吐槽一下,很多问题其实只是参数的问题,但是微信的支付sdk特别坑,报错永远只有-1,demo也是N年前的eclipse老古董,很难想象这是一个大企业的产品。
微信支付报Uninitialized ActivityThread,怎么处理?Android端接入微信支付,调起微信的时候一直报E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory的错误,返回的错误码-1,没有其他信息,貌似是微信对Android P的兼容性问题,应该怎么处理? 微信版本:7.0.17 详细报错堆栈: 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:3416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3643) 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:2225) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:230) at android.app.ActivityThread.main(ActivityThread.java:7742) 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)
2020-08-17