upgrade-support
upgrade-support copied to clipboard
Failed to build Android app after upgrading from 0.64.2 to 0.71.3
Environment
"react": "17.0.1", "react-native": "0.64.2",
Upgrading version
"react": "18.2.0", "react-native": "0.71.3",
Description
When I try to run the app or try to create a .apk file I am getting following error.:
Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'avibra'.
Could not resolve all files for configuration ':classpath'. Could not find com.facebook.react:react-native-gradle-plugin:. Required by: project :
Reproducible demo
we need to just run npx react-native run-android
Check if you have line includeBuild('../node_modules/react-native-gradle-plugin') in android/settings.gradle.