java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.imagepickersampleapp/files/*
Dhaval2404 opened this issue · 0 comments
Dhaval2404 commented
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.imagepickersampleapp/com.github.dhaval2404.imagepicker.ImagePickerActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.imagepickersampleapp/files/flashcards/IMG_20200820_195729281.jpg
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.imagepickersampleapp/files/flashcards/IMG_20200820_195729281.jpg
at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:744)
at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:418)
at com.github.dhaval2404.imagepicker.util.IntentUtils.getCameraIntent(IntentUtils.kt:71)
at com.github.dhaval2404.imagepicker.provider.CameraProvider.startCameraIntent(CameraProvider.kt:135)
at com.github.dhaval2404.imagepicker.provider.CameraProvider.checkPermission(CameraProvider.kt:116)
at com.github.dhaval2404.imagepicker.provider.CameraProvider.startIntent(CameraProvider.kt:105)
at com.github.dhaval2404.imagepicker.ImagePickerActivity.loadBundle(ImagePickerActivity.kt:104)
at com.github.dhaval2404.imagepicker.ImagePickerActivity.onCreate(ImagePickerActivity.kt:56)
at android.app.Activity.performCreate(Activity.java:7224)
at android.app.Activity.performCreate(Activity.java:7213)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)