I\'m developing a React-native app and all of a sudden I started getting the following error:
- What went wrong: A problem occurred configurin
In your build.gradle (not in android/app/build.gradle) add this lines to force all dependency to react-native to specific version:
allprojects {
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
details.useVersion "0.39.0" // Your real React Native version here
}
}
}
}
...
}
This configuration worked for me. I hope this will help.