upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

Failed to build Android app after upgrading from 0.64.2 to 0.71.3

Open tusharsarkar opened this issue 2 years ago • 1 comments

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

tusharsarkar avatar Apr 03 '23 13:04 tusharsarkar

Check if you have line includeBuild('../node_modules/react-native-gradle-plugin') in android/settings.gradle.

Hiipivahalko avatar May 12 '23 17:05 Hiipivahalko