\‘:
app开发,为什么打release包后调用企业微信授权登录无响应?在Android studio中连接手机调试能正常打开企业微信授权页面,打包release后,调用企业微信授权失败, 测试手机:小米8、MIUI12.0.1、Android 10 (使用其他安卓手机测试均出现此问题) Android compileSdkVersion 28 (多次验证,debug包与release包签名一致) 代码sendMessage后无响应 api.sendMessage(req, new IWWAPIEventHandler() { 错误日志: 2020-10-20 15:27:25.178 31220-31236/? E/FloatWindowImpl: com.tencent.wework 2020-10-20 15:27:25.178 3828-18174/? I/ProcessMonitor: onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.tencent.wework', mForegroundUid=10157, mForegroundPid=13188, mLastForegroundPackageName='com.hengan.dataportal', mLastForegroundUid=10713, mLastForegroundPid=18147, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0} 2020-10-20 15:27:25.178 3828-18174/? I/GameBoosterService: onForegroundInfoChanged: Cur=com.tencent.wework last=com.hengan.dataportal 2020-10-20 15:27:25.178 5435-5984/? W/MessageQueue: Handler (com.miui.powerkeeper.feedbackcontrol.FeedbackControlService$FeedbackControlHandler) {f6e18df} sending message to a Handler on a dead thread java.lang.IllegalStateException: Handler (com.miui.powerkeeper.feedbackcontrol.FeedbackControlService$FeedbackControlHandler) {f6e18df} sending message to a Handler on a dead thread at android.os.MessageQueue.enqueueMessage(MessageQueue.java:561) at android.os.Handler.enqueueMessage(Handler.java:754) at android.os.Handler.sendMessageAtTime(Handler.java:703) at android.os.Handler.sendMessageDelayed(Handler.java:673) at android.os.Handler.post(Handler.java:403) at com.miui.powerkeeper.utils.ProcessObserver.notifyForegroundActivitiesChangedListeners(Unknown Source:34) at com.miui.powerkeeper.utils.ProcessObserver.computeUidForegroundLocked(Unknown Source:82) at com.miui.powerkeeper.utils.ProcessObserver.access$1000(Unknown Source:0) at com.miui.powerkeeper.utils.ProcessObserver$2$1.run(Unknown Source:269) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.os.HandlerThread.run(HandlerThread.java:67) 2020-10-20 15:27:25.179 1602-12185/? I/Timeline: Timeline: App_transition_ready time:22822985 2020-10-20 15:27:25.181 3828-18174/? D/GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.tencent.wework', mForegroundUid=10157, mForegroundPid=13188, mLastForegroundPackageName='com.hengan.dataportal', mLastForegroundUid=10713, mLastForegroundPid=18147, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0} 2020-10-20 15:27:25.181 3828-18174/? I/GameBoosterService: onForegroundInfoChanged: Exit 2020-10-20 15:27:25.181 3828-18174/? I/VideoBoxUtils: isSupportVideoBox: false 2020-10-20 15:27:25.181 3828-18174/? I/VideoToolBoxService: onForegroundInfoChanged: Exit Vtb 2020-10-20 15:27:25.182 13188-13188/? E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory java.lang.Throwable at android.app.Instrumentation.getFactory(Instrumentation.java:1260) at android.app.Instrumentation.newActivity(Instrumentation.java:1251) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3220) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457) 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:2044) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7562) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) 2020-10-20 15:27:25.183 7255-7273/? I/CloudSettingsProvider: uriMatch : 2 2020-10-20 15:27:25.186 13188-13188/? W/System.err: java.lang.ClassNotFoundException: b.e.a.a.e.b 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at java.lang.Class.classForName(Native Method) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at java.lang.Class.forName(Class.java:454) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at java.lang.Class.forName(Class.java:379) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.tencent.wework.api.util.ReflecterHelper.newInstance(ReflecterHelper.java:138) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.tencent.wework.api.util.ReflecterHelper.newInstance(ReflecterHelper.java:153) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.tencent.wework.api.model.BaseMessage.parse(BaseMessage.java:45) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.tencent.wework.apihost.WWAPIActivity.report(WWAPIActivity.java:81) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.tencent.wework.apihost.WWAPIActivity.onCreate(WWAPIActivity.java:45) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.Activity.performCreate(Activity.java:7893) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.Activity.performCreate(Activity.java:7880) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3283) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.os.Looper.loop(Looper.java:224) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7562) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) 2020-10-20 15:27:25.186 13188-13188/? W/System.err: Caused by: java.lang.ClassNotFoundException: b.e.a.a.e.b 2020-10-20 15:27:25.186 13188-13188/? W/System.err: ... 23 more 2020-10-20 15:27:25.186 13188-13345/? D/ViewContentFactory: initViewContentFetcherClass 2020-10-20 15:27:25.186 13188-13345/? I/ContentCatcher: ViewContentFetcher : ViewContentFetcher 2020-10-20 15:27:25.186 13188-13345/? D/ViewContentFactory: createInterceptor took 0ms 2020-10-20 15:27:25.187 13188-13188/? W/System.err: java.lang.ClassNotFoundException: b.e.a.a.e.b 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at java.lang.Class.classForName(Native Method) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at java.lang.Class.forName(Class.java:454) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at java.lang.Class.forName(Class.java:379) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.tencent.wework.api.util.ReflecterHelper.newInstance(ReflecterHelper.java:138) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.tencent.wework.api.util.ReflecterHelper.newInstance(ReflecterHelper.java:153) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.tencent.wework.api.model.BaseMessage.parse(BaseMessage.java:45) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.tencent.wework.apihost.WWAPIActivity.W(WWAPIActivity.java:97) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.tencent.wework.apihost.WWAPIActivity.onCreate(WWAPIActivity.java:69) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.Activity.performCreate(Activity.java:7893) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.Activity.performCreate(Activity.java:7880) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3283) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.os.Looper.loop(Looper.java:224) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7562) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) 2020-10-20 15:27:25.187 13188-13188/? W/System.err: Caused by: java.lang.ClassNotFoundException: b.e.a.a.e.b 2020-10-20 15:27:25.187 13188-13188/? W/System.err: ... 23 more 2020-10-20 15:27:25.187 13188-13345/? I/ContentCatcher: Interceptor : Catcher list invalid for com.tencent.wework@com.tencent.wework.apihost.WWAPIActivity@246642872 2020-10-20 15:27:25.188 13188-13345/? I/ContentCatcher: Interceptor : Get featureInfo from config pick_mode
2020-10-20