嗨,我想在我的Android应用中添加一个react native页面。我收到致命错误,如下所示。
android.view.WindowManager$BadTokenException: Unable to add window
android.view.ViewRootImpl$W@cb913e6 -- permission denied for window type 2003
at android.view.ViewRootImpl.setView(ViewRootImpl.java:820)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at android.app.Dialog.show(Dialog.java:332)
at com.facebook.react.devsupport.DevSupportManagerImpl.handleReloadJS(DevSupportManagerImpl.java:538)
at com.facebook.react.ReactInstanceManagerImpl$3$1.run(ReactInstanceManagerImpl.java:386)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6642)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
我已经在我的应用中输入了ACTION_MANAGE_OVERLAY_PERMISSION。请帮助我。