Open KarlosQ opened 6 years ago
Not sure it would help, but try to add multiDexEnabled true
to
android/app/build.gradle > android > defaultConfig
multiDexEnabled true
is not a good solution because although the app builds, it becomes unstable, so I never use multiDexEnabled true
in my apps.
all the files you showed us doesn't have the react-native-crop-picker package... Would you mind to update your files with the config that is crashing your build?
@KarlosQ I had the multiDexEnabled true
and my problem was solved but you said that this option makes apps unstable ???
In your gradle.settings you have 'react-native-image-picker' instead of 'react-native-image-crop-picker' Also, in MainAplication.java, you are missing new PickerPackage(), which is a result of 'react-native link' command.
It looks like you used 'react-native-image-picker' library instead.
@alexhuiculescu96 sorry, I update the post with the correct files.
When I try to build with react-native-image-crop-picker linked build throw a error, but if I unlink react-native-image-crop-picker build without problems.
Error
My settings.gradle
build.gradle
app build.gradlew
MainApplication.java