Build failed with an exception while using Android Studio 2.3
See original GitHub issueFAILURE: Build failed with an exception.
@hawkrives What went wrong: A problem occurred configuring project ‘:app’. You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html#
x--------x-----------x------------x----------x------------x--------x--------x
I’ve tried the following solutions for solving this issue: (None worked for me ! 👎 Windows 10, 64-bit)
android update sdk --no-ui --filter build-tools-23.0.1,android-23,extra-android-m2repository
Got an error “Filter extra-android-m2repository is not supported” 👎
tools/bin/sdkmanager --licenses
Says “All SDK package licenses accepted.” 👎 Still while trying to start React Native I get the error described above !!! i.e not accepted the license agreements
- Even uninstalled the SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1] from the SDK manager (patcher) and redownloaded them. (Didn’t ask for License Agreement this time) 👎
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Error creating a project on Android Studio 2.3 - Stack Overflow
Go to File->Project Structure... (or press Ctrl+Shift+Alt+S ). In the left sidebar, click Project (under SDK Location ), and change Gradle ...
Read more >Android studio 2.3 gradle build tools error - CodeProject
I'm getting mad, after updating android studio 2.2 to 2.3 i can't create and edit any project because gradle get error: Failed to...
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 >I am getting errors when attempting a gradle release build of a ...
To do this set org.gradle.jvmargs=-Xmx4608M in the project gradle.properties. ... FAILURE: Build failed with an exception. * What went wrong: Execution failed for ......
Read more >FAILURE: Build failed with an exception-android-Java
[Solved]-android studio: FAILURE: Build failed with an exception-android-Java ... I still think its a connection issue . is maven google available in your...
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 Free
Top 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
Hi there, I knew that this issue is already closed, but I would like to leave my solution here. May be it worth for the other people.
I’ve got this issue like this post. I’ve already re-install Android studio, and accepted all licenses. Did not work.
Then after the long-hours of finding. My problem was the environment variable was incorrectly configured.
ANDROID_HOME should be H:\Android\sdk
Note: The path without platform-tools
Path should add H:\Android\sdk\platform-tools
I hope this could help!
@sus007 I’ve added some screenshot as you mentioned. Thanks
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we’re automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.