android app crashes on Image upload after using camera without error
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.37.3
- react-native v0.66.4
Platform
Tell us to which platform this issue is related
- Android v10, OPPO A5 2020
Expected behaviour
Open up the native android modal, then click on camera to snap photo and upload to the app
Actual behaviour
App crashes
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
I had the same issue recently when upgrading to react-native 0.69.1. When looking at logcat I noticed that the issue was caused by java.lang.ClassNotFoundException: Didn't find class "androidx.core.view.MenuHost".
It turns out that my build.gradle file was forcing androidx.core to 1.6.0 and that was the reason of the resolution issue. I changed:
configurations.all {
resolutionStrategy { force 'androidx.core:core:1.6.0' }
}
to:
configurations.all {
resolutionStrategy { force 'androidx.core:core:1.7.0' }
}
And it worked flawlessly.
Any update on this one. I am using react native version 0.66.5