ImagePicker
ImagePicker copied to clipboard
Crash when selecting camera
Hello, I have this problem, happening only in OnePlus8Pro devices, with android 11. The version of ImagePicker I use is 2.1. When the user selects the camera option, the following crash happens:
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.project.name/com.github.dhaval2404.imagepicker.ImagePickerActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/IMG_20231101_041618651.jpg at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3433) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3607) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7680) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:423) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I have the same issue
Same issue here: Unable to start activity ComponentInfo{appyness.mhsc/com.github.dhaval2404.imagepicker.ImagePickerActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/IMG_20240116_083529892.jpg
same issue
same issue came in my OnePlus8Pro device android 11.