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 failed with an exception while using Android Studio 2.3

See original GitHub issue

FAILURE: 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)

  1. 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” 👎

  1. 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

image image

  1. 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
aulsaicommented, Sep 4, 2017

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 image

Path should add H:\Android\sdk\platform-tools image

I hope this could help!

@sus007 I’ve added some screenshot as you mentioned. Thanks

2reactions
hramoscommented, Aug 16, 2017

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:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

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.

Read more comments on GitHub >

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

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