Build error on android after upgrade to gradle 7
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
This issue is fixed in #450 and will be released in a new version. We will keep you updated on the release
Hi @poovamraj I am using react-native 0.66.3 and react-native-auth0 2.11.0