junixapp/XPopup

Fatal Exception: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@cc7dead is not valid; is your activity running?

Opened this issue · 0 comments

XPopup版本
2.9.19

手机系统和型号
华为Mate20 Android 10

描述你的问题
Fatal Exception: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@cc7dead is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:1220)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:431)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:133)
at android.app.Dialog.show(Dialog.java:345)
at com.lxj.xpopup.core.BasePopupView.attachToHost(BasePopupView.java:151)
at com.lxj.xpopup.core.BasePopupView.access$000(BasePopupView.java:59)
at com.lxj.xpopup.core.BasePopupView$1.run(BasePopupView.java:119)
at android.os.Handler.handleCallback(Handler.java:978)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at android.app.ActivityThread.main(ActivityThread.java:8089)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)