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

android app crashes on Image upload after using camera without error

Open kelvin888-cloud opened this issue 3 years ago • 1 comments

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

kelvin888-cloud avatar Jun 12 '22 13:06 kelvin888-cloud

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.

genaris avatar Jul 18 '22 22:07 genaris

Any update on this one. I am using react native version 0.66.5

AjaySinghPanwar2817 avatar Apr 24 '23 03:04 AjaySinghPanwar2817