android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@2d54966 -- 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 Stack Overflow by Amir
, 1 year ago
Unable to add window android.view.ViewRootImpl$W@2d54966 -- permission denied for this window type
via GitHub by fayazara
, 1 year ago
Unable to add window android.view.ViewRootImpl$W@1454e05 -- permission denied for window type 2006
via GitHub by NullPoint-A
, 4 months ago
Unable to add window android.view.ViewRootImpl$W@2557df6 -- permission denied for window type 2006
via Stack Overflow by ankur agarwal
, 2 years ago
Unable to add window -- token null is not for an application
via programwith.com by Unknown author, 2 years ago
Unable to add window -- token null is not for an application
via Stack Overflow by Abhishek Taneja
, 7 months ago
Unable to add window android.view.ViewRootImpl$W@8fb7e76 -- permission denied for window type 2006
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@2d54966 -- permission denied for this window type
at android.view.ViewRootImpl.setView(ViewRootImpl.java:875)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
at com.txusballesteros.bubbles.BubblesService$2.run(BubblesService.java:120)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

10 times, 3 months ago
19 times, 4 months ago
6 times, 7 months ago
4 times, 9 months ago
2 times, 10 months ago

Write tip

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