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.

Build error on android after upgrade to gradle 7

See original GitHub issue

Describe the problem

After upgrading my android project to use gradle 7 I have a problem building it because of the error in react-native-auth0

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:installDevDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/danilogacevic/Documents/app/node_modules/react-native-auth0/android/build.gradle' line: 94

* What went wrong:
A problem occurred configuring project ':react-native-auth0'.
> Configuration with name 'compile' not found.

I tried commenting out this line: 94 and when I do so build succeeded.

What was the expected behavior?

I expect to be able to build android project

Reproduction

In build.gradle Update buildToolsVersion and compileSdkVersion to 31 Update gradle to classpath 'com.android.tools.build:gradle:7.0.3'

Environment

React-Native/Android

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
poovamrajcommented, Jan 27, 2022

This issue is fixed in #450 and will be released in a new version. We will keep you updated on the release

1reaction
gax97commented, Jan 18, 2022

Hi @poovamraj I am using react-native 0.66.3 and react-native-auth0 2.11.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading your build from Gradle 7.x to the latest
Run gradle wrapper --gradle-version 7.6 to update the project to 7.6. Try to run the project and debug any errors using the Troubleshooting...
Read more >
Android release build fail after upgrading to Gradle wrapper to ...
When I install a debug build on my device through Android Studio, it works, and no error. Now whenever I try to create...
Read more >
Known issues with Android Studio and Android Gradle Plugin
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version...
Read more >
How do I upgrade gradle version? - CodeProject
You cannot change product numbers by hand, as that does not actually do the upgrade. See android studio update gradle - Google Search[^]...
Read more >
Bug: IDE suggest to update gradle version for a new project ...
Steps to Reproduce: 1. Create new project. ... 4. Notice it says to fix gradle version instead of doing it on its own....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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