question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Build error using RN 0.65.1 with Gradle 7.0.2

See original GitHub issue

Problem

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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Gra55h0ppercommented, Aug 31, 2021

Workaround

Downgrade Gradle. In Android Studio go to File->Project Structure and select:

  • Android Gradle Plugin Version: 4.2.2
  • Gradle Version: 6.7.1

This seems to make things work again.

0reactions
poovamrajcommented, Jan 27, 2022

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found