java.lang.IllegalArgumentException

View not attached to window manager

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18112

  • View not attached to window manager
  • via GitHub by indication
    , 4 months ago
    View not attached to window manager
  • via GitHub by obilodeau
    , 9 months ago
    View not attached to window manager
  • Stack trace

    • 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 com.afollestad.materialdialogs.MaterialDialog.dismiss(MaterialDialog.java:1811) at android.app.Dialog.cancel(Dialog.java:1104) at android.app.Dialog.onTouchEvent(Dialog.java:617) at android.app.Dialog.dispatchTouchEvent(Dialog.java:739) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1873) at android.view.View.dispatchPointerEvent(View.java:7307) at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3172) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3117) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4153) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4132) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4224) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:125) at android.os.Looper.loop(Looper.java:124) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(NativeStart.java)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 year ago
    3 times, 4 months ago
    Unknown user
    2 times, 1 year ago
    18 times, 1 month ago
    Unknown user
    Once, 5 months ago
    21 more bugmates