java.lang.IllegalArgumentException: View not attached to window manager

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

java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:653)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:349)
at android.view.WindowManagerImpl$CompatModeWrapper.removeView(WindowManagerImpl.java:160)
at android.app.Dialog.dismissDialog(Dialog.java:319)
at android.app.Dialog.dismiss(Dialog.java:302)
at de.danoeh.antennapod.core.asynctask.FeedRemover.onPostExecute(FeedRemover.java:41)
at de.danoeh.antennapod.activity.MainActivity$4.onPostExecute(MainActivity.java:584)
at de.danoeh.antennapod.activity.MainActivity$4.onPostExecute(MainActivity.java:581)
at android.os.AsyncTask.finish(AsyncTask.java:631)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
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:786)

Users with the same issue

Once, 1 year ago
3 times, 8 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
4 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
21 more bugmates

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