小程序 文本输入框 点击 获取焦点 就会 crash
「微信7.0.12」就复现了 「微信7.0.13 内测版」也还一直复现
也可能和 Android 系统版本有关
无法使用相关操作的小程序 ( 登录操作 、各种个人资料上传验证操作等 )
望修复 !望修复 !望修复 !
log 日志:
2020-03-28 13:16:12.794 12040-12040/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.tencent.mm:appbrand0, PID: 12040
org.a.b: org.a.b: java.lang.NoSuchFieldException: mServedView
at org.a.a.aOw(SourceFile:287)
at org.a.a.get(SourceFile:266)
at com.tencent.mm.plugin.appbrand.widget.input.aj.dm(SourceFile:86)
at com.tencent.mm.plugin.appbrand.widget.input.i$3.run(SourceFile:693)
at com.tencent.mm.plugin.appbrand.widget.input.i$5.run(SourceFile:734)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.tencent.e.i.k.run(SourceFile:8234)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.tencent.e.h.f$a$1.dispatchMessage(SourceFile:64)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7464)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
Caused by: org.a.b: java.lang.NoSuchFieldException: mServedView
at org.a.a.aOx(SourceFile:311)
at org.a.a.aOw(SourceFile:283)
at org.a.a.get(SourceFile:266)
at com.tencent.mm.plugin.appbrand.widget.input.aj.dm(SourceFile:86)
at com.tencent.mm.plugin.appbrand.widget.input.i$3.run(SourceFile:693)
at com.tencent.mm.plugin.appbrand.widget.input.i$5.run(SourceFile:734)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.tencent.e.i.k.run(SourceFile:8234)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.tencent.e.h.f$a$1.dispatchMessage(SourceFile:64)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7464)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
Caused by: java.lang.NoSuchFieldException: mServedView
at java.lang.Class.getField(Class.java:1604)
at org.a.a.aOx(SourceFile:296)
at org.a.a.aOw(SourceFile:283)
at org.a.a.get(SourceFile:266)
at com.tencent.mm.plugin.appbrand.widget.input.aj.dm(SourceFile:86)
at com.tencent.mm.plugin.appbrand.widget.input.i$3.run(SourceFile:693)
at com.tencent.mm.plugin.appbrand.widget.input.i$5.run(SourceFile:734)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.tencent.e.i.k.run(SourceFile:8234)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.tencent.e.h.f$a$1.dispatchMessage(SourceFile:64)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7464)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
2020-03-28 13:16:12.817 1334-1970/? W/DevicePolicyManager: Package com.tencent.mm (uid=10431, pid=12040) cannot access Device IDs
2020-03-28 13:16:12.818 2093-2502/? W/TelephonyPermissions: reportAccessDeniedToReadIdentifiers:com.tencent.mm:getDeviceId
2020-03-28 13:16:13.003 1334-7572/? I/ActivityManager: Process com.tencent.mm:appbrand0 (pid 12040) has died: fore TOP
2020-03-28 13:16:13.004 1334-2175/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=12113, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10431 RequestorUid: 10431 RequestorPackageName: com.tencent.mm] ], android.os.BinderProxy@b9e7b48)
2020-03-28 13:16:13.004 1334-3987/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=12112, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10431 RequestorUid: 10431 RequestorPackageName: com.tencent.mm] ], android.os.BinderProxy@dba9de1)
2020-03-28 13:16:13.007 1334-1723/? W/InputDispatcher: channel 'a7196bd com.tencent.mm/com.tencent.mm.plugin.appbrand.ui.AppBrandUI (server)' ~ Consumer closed input channel or an error occurred. events=0x9
2020-03-28 13:16:13.007 1334-1723/? E/InputDispatcher: channel 'a7196bd com.tencent.mm/com.tencent.mm.plugin.appbrand.ui.AppBrandUI (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-03-28 13:16:13.007 1334-3239/? I/WindowManager: WIN DEATH: Window{a7196bd u0 com.tencent.mm/com.tencent.mm.plugin.appbrand.ui.AppBrandUI}
2020-03-28 13:16:13.011 1334-3239/? W/InputDispatcher: Attempted to unregister already unregistered input channel 'a7196bd com.tencent.mm/com.tencent.mm.plugin.appbrand.ui.AppBrandUI (server)'
2020-03-28 13:16:13.023 1334-7572/? W/ActivityTaskManager: Force removing ActivityRecord{5cd6e00 u0 com.tencent.mm/.plugin.appbrand.ui.AppBrandUI t2587}: app died, no saved state
===== 重新编辑添加 ========
看了这个log 是由于设备政策原因导致的,应该是微信调用 getDeviceId ,设备拒绝微信访问设备的ID 导致异常抛出
开发小哥哥 ,这个bug 我给你解了 麻烦改一下 Thanks♪(・ω・)ノ
请具体描述问题出现的流程,并提供能复现问题的简单代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
另外,麻烦再重现一次,在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,提供一下微信号,复现问题的详细时间点
Android 11,版本这么高的嘛?10也会这样吗