android studio开发调用摄像头自动退出APP在真机上测试报错求解

W/System.err: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.example.myapplication.fileprovider
W/System.err:     at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:606)
W/System.err:     at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:579)
        at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:417)
        at com.example.myapplication.MainActivity$MyChromeWebClient.takePhoto(MainActivity.java:219)
        at com.example.myapplication.MainActivity$MyChromeWebClient.onShowFileChooser(MainActivity.java:200)
        at jU.a(PG:554)
        at zT.runFileChooser(PG:72)
W/System.err:     at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:326)
        at android.os.Looper.loop(Looper.java:196)
        at android.app.ActivityThread.main(ActivityThread.java:7227)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962)

https://blog.csdn.net/weixin_42683681/article/details/92634937

7.0以上 对手机的文件储存位置有了严格要求 你的是FileProvider写的有问题吧 需要看看manifest里面的这个有没有问题