Android Build error using RN 0.65.1 with Gradle 7.0.2
See original GitHub issueProblem
After upgrading React-Native and Gradle to the latest & greatest available versions gradlew bundleRelease
throws an error:
Build file '.../node_modules/react-native-auth0/android/build.gradle' line: 18
A problem occurred evaluating project ':react-native-auth0'.
> Plugin with id 'maven' not found.
Reproduction
Both gradlew clean
and gradlew bundleRelease
will throw the above error.
Workaround
Don’t know yet but I will try downgrading Gradle to a version older than 7.0.0.
Environment
React Native 0.65.1 react-native-auth0: 2.9.0 Gradle 7.0.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
react-native - Upgrading to Gradle 7 breaks project
0. When running react-native run-android got: FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
Read more >React Native - Android build error: A problem occurred ...
I'm using React Native "0.65.0" , Gradle version 6.7.1 , and Android Gradle Plugin Version: 4.2.2. I moved the project to Gradle version ......
Read more >Prerequisites for Applications - React Native
Using the New Architecture on Android has some prerequisites that you need to meet: Using Gradle 7.x and Android Gradle Plugin 7.x; Using...
Read more >react native task :app:checkdebugaarmetadata failed - You.com
Firstly, I got this error message Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 but I solved...
Read more >react-native-webview - npm
React Native WebView component for iOS, Android, macOS, and Windows. Latest version: 11.26.0, last published: 23 days ago. Start using ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround
Downgrade Gradle. In Android Studio go to
File->Project Structure
and select:This seems to make things work again.
@hamzaz9912 Which version of the SDK are you using? If it is the latest, can you confirm which Gradle line is causing the issue. We currently have a fix in master for a similar issue in Gradle 7.0. Refer #446