android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@142544eb -- permission denied for this window type

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 GitHub by mike-stetsenko
, 1 year ago
Unable to add window android.view.ViewRootImpl$W@142544eb -- permission denied for this window type
via GitHub by alexeyvasilyev
, 6 months ago
Unable to add window -- token null is not valid; is your activity running?
via GitHub by irsalshabirin
, 1 year ago
Unable to add window android.view.ViewRootImpl$W@43093158 -- permission denied for this window type
via Stack Overflow by sama
, 1 year ago
Unable to add window -- token null is not for an application
via Stack Overflow by Abhishek Taneja
, 5 months ago
Unable to add window android.view.ViewRootImpl$W@8fb7e76 -- permission denied for window type 2006
via Stack Overflow by vignesh
, 2 years ago
Unable to add window -- token null is not for an application
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@142544eb -- permission denied for this window type
at android.view.ViewRootImpl.setView(ViewRootImpl.java:714)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at com.github.johnpersano.supertoasts.library.Toaster.displaySuperToast(Toaster.java:186)
at com.github.johnpersano.supertoasts.library.Toaster.handleMessage(Toaster.java:136)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5546)
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:967)

Users with the same issue

6 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
1805 times, 1 month ago
19 times, 2 months ago
55 more bugmates

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