react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Fails to build with Android 12
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.37.2
- react-native v0.64.2
Platform
Tell us to which platform this issue is related
Android
Expected behaviour
Should build fine.
Actual behaviour
Error is:
Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
It's fixed when I manually patch the library to add a android:exported="true"
line here:
https://github.com/ivpusic/react-native-image-crop-picker/blob/2b95b88f0b45025cccea0d39be582ff4cf311d1e/android/src/main/AndroidManifest.xml#L26
Steps to reproduce
-
Upgrade compileSdkVersion and targetSdkVersion to 31 in the main app's build.gradle.
-
Run
npm run android
. -
See error.
Attachments
Is there any update on SDK 12 Support?
Hi there! I posted about this in another issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/1428#issuecomment-1240053429
Hope that helps!