-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build is failing after upgrading the react native version to 0.75.2 #46319
Comments
|
|
@aashish-tanwar I believe AGP 8.5.0 requires Gradle 8.0 or later , try changing that combination . Check Compatiblity list |
I'm having the same issue, switched the react native version to 0.75.2 and added the following: on android/build.gradle
on android/app/build.gradle
on android/settings.gradle
running npx react-native run-android gives the error above(and bellow)
|
@aashish-tanwar are you able to build locally with the CLI before trying Android Studio? |
@aashish-tanwar TRY GRADLE 8.8 at |
any update for this same issue as well with me |
Closing as @aashish-tanwar is unresponsive. Please don't hijack the issue and open a new one if you still have a similar issue. |
Description
I'm working on the hybrid app which is built using the React Native Package.
It was working fine on the v0.70.14 version but when I upgraded it to version 0.75.2, the Android project stopped building but the iOS project is building fine.
I'm using Hermes as a JS engine
"react": "18.3.1"
"react-native": "0.75.2",
I have upgraded the gradle version as well
dependencies { classpath 'com.android.tools.build:gradle:8.5.0' classpath 'com.google.gms:google-services:4.4.1' classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
This is my gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
Steps to reproduce
React Native Version
0.75.2
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
It is a private repository
Screenshots and Videos
The text was updated successfully, but these errors were encountered: