React-native run-android flicker

add the error code directly

04-10 11:48:23.497 19813-19813/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zrb.zrb, PID: 19813
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@dd4f45 -- permission denied for window type 2006
    at android.view.ViewRootImpl.setView(ViewRootImpl.java:805)
    at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:359)
    at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
    at com.facebook.react.devsupport.DevLoadingViewController.setVisible(DevLoadingViewController.java:145)
    at com.facebook.react.devsupport.DevLoadingViewController.access$100(DevLoadingViewController.java:34)
    at com.facebook.react.devsupport.DevLoadingViewController$1.run(DevLoadingViewController.java:66)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6665)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
    

the unified saying on the Internet is to add permissions

clipboard.png

I have this permission before, which makes me confused. There is no problem for ios to start. It can be installed when run-android is started, but flicker when it is opened automatically

Mar.03,2021

you want to play System-level Dialog. It is recommended to take a look at https://www.jianshu.com/p/c3b.


android 6.0.In addition to applying for some privacy permissions in Manifest.xml, you also need to apply dynamically while APP is running, read and write permissions, camera permissions are the latter. At this point, you need to use PermissionsAndroid for processing. See PermissionAndroid

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4f9ef-43d03.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4f9ef-43d03.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?