run-android does not run due to not accepted license agreements

Viewed 7598

FAILURE: Build failed with an exception.

  • 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

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output

What do I do in such situation?

2 Answers

Try to run:

$ANDROID_HOME/tools/bin/sdkmanager --licenses

That should follow you to accepting all necessary licenses

Related