android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running?

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via aliyun.com by Unknown author, 9 months ago
Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running?
via Stack Overflow by swati
, 2 years ago
Unable to add window -- token android.view.ViewRootImpl$W@419d2ae0 is not valid; is your activity running?
via w3facility.org by Unknown author, 2 years ago
Unable to add window -- token null is not valid; is your activity running?
via Stack Overflow by Simo
, 2 years ago
Unable to add window -- token android.view.ViewRootImpl$W@410ad298 is not valid; is your activity running?
via ne.jp by Unknown author, 1 year ago
Unable to add window -- token android.view.ViewRootImpl$W@417b7568 is not valid; is your activity running?
via Stack Overflow by Shehabix
, 2 years ago
Unable to add window -- token android.view.ViewRootImpl$W@418cdab0 is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@41601028 is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:513)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:301)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215)
at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140)
at android.view.Window$LocalWindowManager.addView(Window.java:537)
at android.widget.PopupWindow.invokePopup(PopupWindow.java:988)
at android.widget.PopupWindow.showAtLocation(PopupWindow.java:845)
at android.widget.PopupWindow.showAtLocation(PopupWindow.java:809)
at android.inputmethodservice.KeyboardView.showKey(KeyboardView.java:960)
at android.inputmethodservice.KeyboardView.access$100(KeyboardView.java:69)
at android.inputmethodservice.KeyboardView$1.handleMessage(KeyboardView.java:260)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
55 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.