Skip to content

Android studio gradle build FAILURE: Build completed with 2 failures. #856

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

Closed
1 of 2 tasks
dribble-njr opened this issue May 30, 2025 · 2 comments
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@dribble-njr
Copy link

Description

Open android with android studio, then gradle build fails:

Starting Gradle Daemon...
Gradle Daemon started in 888 ms

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/Users/njr/demo/android/build.gradle' line: 22

* What went wrong:
A problem occurred evaluating root project 'android'.
> Plugin with id 'com.facebook.react' not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring root project 'android'.
> compileSdkVersion is not specified. Please add it to build.gradle

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 4s

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

✔ What is the name of the npm package? … react-native-music-library
✔ What is the description for the package? … Access local music files with metadata
✔ What is the name of package author? … Your Name
✔ What is the email address for the package author? … [email protected]
✔ What is the URL for the package author? … https://github.com/yourusername
✔ What is the URL for the repository? … https://github.com/yourusername/react-native-music-library
✔ What type of library do you want to develop? › Turbo module

Link to repro

https://github.com/nodefinity/react-native-music-library

Environment

node: v20.19.0
macOS: 15.3.2

@dribble-njr dribble-njr added the bug Something isn't working label May 30, 2025
@satya164
Copy link
Member

You should be opening example/Android folder. Please read the README.md and CONTRIBUTING.md in your repository.

@satya164 satya164 closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2025
@dribble-njr
Copy link
Author

Thanks. My bad, didn't notice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants