gpt4 book ai didi

android - java.lang.IllegalArgumentException:View = org.chromium.content.browser.input.PopupTouchHandleDrawable未附加到窗口管理器

转载 作者:行者123 更新时间:2023-12-03 17:44:14 25 4
gpt4 key购买 nike

我在HockeyApp崩溃报告中得到了这个stacktrace。

java.lang.IllegalArgumentException: View=org.chromium.content.browser.input.PopupTouchHandleDrawable{a132f39 I.ED.... ......I. 0,0-189,232} not attached to window manager at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:402) at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:314) at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:74) at android.widget.PopupWindow.update(PopupWindow.java:1693) at android.widget.PopupWindow.update(PopupWindow.java:1622) at org.chromium.content.browser.input.PopupTouchHandleDrawable.updatePosition(PopupTouchHandleDrawable.java:204) at org.chromium.content.browser.input.PopupTouchHandleDrawable.doInvalidate(PopupTouchHandleDrawable.java:229) at org.chromium.content.browser.input.PopupTouchHandleDrawable.beginFadeIn(PopupTouchHandleDrawable.java:274) at org.chromium.content.browser.input.PopupTouchHandleDrawable.access$600(PopupTouchHandleDrawable.java:32) at org.chromium.content.browser.input.PopupTouchHandleDrawable$3.run(PopupTouchHandleDrawable.java:260) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777) at android.view.Choreographer.doCallbacks(Choreographer.java:590) at android.view.Choreographer.doFrame(Choreographer.java:559) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5972) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)



我们在某处使用webview来呈现一些URL。
知道何时会发生此异常?

最佳答案

查看未附加到窗口管理器。
当 View 不在前景中时,很可能是由于您试图更新位置而导致的。只要检查是否是这种情况。

关于android - java.lang.IllegalArgumentException:View = org.chromium.content.browser.input.PopupTouchHandleDrawable未附加到窗口管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31011015/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com