React-native-splash-screen: java.lang.IllegalArgumentException

Created on 9 May 2017  ·  3Comments  ·  Source: crazycodeboy/react-native-splash-screen

日志捕获在SplashScreen.java:58行报错
java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{3edec30a V.E..... R....... 0,0-1080,1920} not attached to window manager
at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:399)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:325)
at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84)
at android.app.Dialog.dismissDialog(Dialog.java:341)
at android.app.Dialog.dismiss(Dialog.java:324)
at com.cboy.rn.splashscreen.SplashScreen$2.run(SplashScreen.java:58)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5556)
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)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)

Most helpful comment

@leishi8819 I got the same error, did you find out what is causing it and how to prevent it?

All 3 comments

@leishi8819 I got the same error, did you find out what is causing it and how to prevent it?

@nikolay-radkov We have the same issue. Did you find out the reason?

No, we didn't find a solution.

Was this page helpful?
0 / 5 - 0 ratings