react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Permission Error
error: cannot find symbol permissionsCheck(activity, promise, Collections.singletonList(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU ? Manifest.permission.WRITE_EXTERNAL_STORAGE : Manifest.permission.READ_MEDIA_IMAGES), new Callable<Void>() { ^ symbol: variable TIRAMISU location: class VERSION_CODES
- Android
Expected behaviour
Actual behaviour
Steps to reproduce
Attachments
// stacktrace or any other useful debug info
Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate
Regarding the Manifest.permission.READ_MEDIA_IMAGES, probably its missing in the Manifest file and adding it there should be enough. If not, maybe it is needed to upgrade some dependency. Same applies for the "TIRAMISU" error. I had to fork the project and replace these variables with the respective direct values until this is fixed.
I fixed by trying the solution stated here https://github.com/invertase/notifee/issues/561
@ajay2966 @dariofilipe95 use react-native-image-crop-picker version 0.36.2 It will be fixed. as new version creating permission issues in android
Regarding the Manifest.permission.READ_MEDIA_IMAGES, probably its missing in the Manifest file and adding it there should be enough. If not, maybe it is needed to upgrade some dependency. Same applies for the "TIRAMISU" error. I had to fork the project and replace these variables with the respective direct values until this is fixed.
this one fixed my issue, using latest version 0.39 with android 13 and RN 0.71
You should change your sdkVersion compileSdkVersion = 33 and targetSdkVersion = 33 Gradle upgrade is required as well.
Just Add <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
in your AndroidManifest.xml
file.
Regarding the Manifest.permission.READ_MEDIA_IMAGES, probably its missing in the Manifest file and adding it there should be enough. If not, maybe it is needed to upgrade some dependency. Same applies for the "TIRAMISU" error. I had to fork the project and replace these variables with the respective direct values until this is fixed.
Just Add
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
in yourAndroidManifest.xml
file.Regarding the Manifest.permission.READ_MEDIA_IMAGES, probably its missing in the Manifest file and adding it there should be enough. If not, maybe it is needed to upgrade some dependency. Same applies for the "TIRAMISU" error. I had to fork the project and replace these variables with the respective direct values until this is fixed.
Thank you very much, this is working for me.
@aviral1518 This dont work for me
@VictorPulzz Add Permission in AndroidManifest.xml
remove/add according to your requirement
change react-native-image-crop-picker to 0.38.1 as newer version is having permission issues.
I have added :
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
to android/app/src/main/AndroidManifest.xml
and downgraded the version to 0.39 and it works for me.
I faced the same issue. I changed android/build.gradle
file targetSdkVersion
from 31 to 33 & compileSdkVersion
from 31 to 33. It worked for me.
I found the solution from here
Just Add
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
in yourAndroidManifest.xml
file.Regarding the Manifest.permission.READ_MEDIA_IMAGES, probably its missing in the Manifest file and adding it there should be enough. If not, maybe it is needed to upgrade some dependency. Same applies for the "TIRAMISU" error. I had to fork the project and replace these variables with the respective direct values until this is fixed.
Thanks dude work for me
Possible Unhandled Promise Rejection (id: 4): Error: User did not grant camera permission. after setting all permissions this error is showing
How can I make this work in Expo?
@VictorPulzz Add Permission in AndroidManifest.xml
remove/add according to your requirement
change react-native-image-crop-picker to 0.38.1 as newer version is having permission issues.
Thanks for this suggestion.
I have fixed by error by degrading version to 0.38.1. Don't forget to rebuild your project otherwise, you'll have the same issue.