反应原生机器人崩溃

时间:2016-12-17 07:58:10

标签: reactjs react-native crash

我发现在Android模拟器上运行是可以的,但是当我使用我的Android设备时,它会一直崩溃。你能帮我吗? 这是我的崩溃日志

---------崩溃的开始

    12-17 15:45:40.520 26382-26382/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.rntest, PID: 26382
Theme: themes:{}
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rntest/com.rntest.MainActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.action.MANAGE_OVERLAY_PERMISSION }
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2464)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2536)
at android.app.ActivityThread.access$900(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5504)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
 Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.action.MANAGE_OVERLAY_PERMISSION }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1812)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1516)
at android.app.Activity.startActivityForResult(Activity.java:3963)
at android.app.Activity.startActivityForResult(Activity.java:3924)
at android.app.Activity.startActivity(Activity.java:4247)
at android.app.Activity.startActivity(Activity.java:4215)
at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:84)
at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:54)
at android.app.Activity.performCreate(Activity.java:6285)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2536) 
at android.app.ActivityThread.access$900(ActivityThread.java:159) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:5504) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
    12-17 15:45:40.521 4055-5389/? W/ActivityManager:   Force finishing activity com.rntest/.MainActivity

1 个答案:

答案 0 :(得分:1)

我正面临着这个问题。原来该应用程序失去了许可。

要解决它

  • 设置
  • 搜寻平局
  • 转到Draw over other apps
  • 为您的应用授予权限