react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Gallery not open on Android 10.

Open HituChhimpa7 opened this issue 7 months ago • 2 comments
trafficstars

Gallery is not open on Android version 10. while camera is working fine I'm requesting all the persions like for older android version we need to request the read external storage but its not working plese check this issue.

HituChhimpa7 avatar Apr 22 '25 14:04 HituChhimpa7

Our users have reported similar issues on Android 10, they are presented with this error box when opening gallery. The issue started appearing after updated to the latest version of react-native-image-crop-picker.

Image

The text translates to...

An error have occurred Please try again later

Apparently this is a Google Play Services related issue, I have tried asking them to update Google services, but they report the issue still persist even after updating Google Play Services.

My environment

React Native

  "react": "18.3.1",
  "react-native": "0.77.1",
  "react-native-image-crop-picker": "^0.42.0",

Android

       buildToolsVersion = "35.0.0"
        minSdkVersion = 26
        compileSdkVersion = 35
        targetSdkVersion = 34
        ndkVersion = "27.2.12479018"
        kotlinVersion = "2.0.21"
        googlePlayServicesVisionVersion = "17.0.2"
        googlePlayServicesVersion = "16.+"
        firebaseVersion = "17.3.4"

noumantahir avatar Apr 25 '25 11:04 noumantahir

I am facing an issue with open camera and it returns:

java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/....

andremawad avatar May 03 '25 23:05 andremawad

I am facing an issue with open camera and it returns:

java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/....

The same issue. i use ImagePicker.openCamera. It don't open camera and return [java.lang.IllegalArgumentException: Failed to find configured root that contains .... ] Do you fix it? @andremawad

ZcosAka avatar Aug 27 '25 03:08 ZcosAka

this is happening to me too on openCamera

manosKas avatar Sep 19 '25 10:09 manosKas

I am facing an issue with open camera and it returns: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/....

The same issue. i use ImagePicker.openCamera. It don't open camera and return [java.lang.IllegalArgumentException: Failed to find configured root that contains .... ] Do you fix it? @andremawad

Acctually I used react-native-camera-kit and did my own camera component you can try and use their example and modify it to match your needs.

andremawad avatar Sep 19 '25 10:09 andremawad

I am facing an issue with open camera and it returns: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/....

The same issue. i use ImagePicker.openCamera. It don't open camera and return [java.lang.IllegalArgumentException: Failed to find configured root that contains .... ] Do you fix it? @andremawad

Acctually I used react-native-camera-kit and did my own camera component you can try and use their example and modify it to match your needs.

cheers!

manosKas avatar Sep 19 '25 10:09 manosKas

this fixes it btw

https://github.com/ivpusic/react-native-image-crop-picker/issues/1653#issuecomment-3254749462

manosKas avatar Sep 19 '25 11:09 manosKas