gpt4 book ai didi

reactjs - react 原生 Android 崩溃

转载 作者:行者123 更新时间:2023-12-02 00:39:53 27 4
gpt4 key购买 nike

我发现在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

最佳答案

我正面临这个问题。结果发现该应用缺少权限。

要解决这个问题,必须

  • 设置
  • 搜索抽奖
  • 转到在其他应用上绘图
  • 授予您的应用权限

关于reactjs - react 原生 Android 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41196603/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com