Run-android does not start due to unaccepted license agreements

FAILURE: assembly failed, exception.

  • What went wrong: There was a problem setting up the ': app' project.

    You have not accepted the license agreements for the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1]. Before creating a project, you must accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. In addition, to learn how to transfer license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html.

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

What should I do in this situation?

+6
source share
2 answers

When opening the SDK Manager in Android Studio:

  • Open the Android SDK Manager.

  • Go to the "SDK Tools" tab and select the "Show package details" checkbox in the lower right corner of the screen.

  • Check option 23.0.1 in the "Android SDK Build-Tools" section.

  • Click "Apply." You must be offered a license agreement. Accept the license and you're done.

  • Try repeating your response app.

If you are not using Android Studio:

  • Open the SDK Manager in the Android SDK folder (possibly in the tools or platforms folder)

  • " Android SDK Build-tools", 23.0.1.

  • " 1 " ( . , / - )

  • . SDK .

  • .

+6

:

$ANDROID_HOME/tools/bin/sdkmanager --licenses

,

+1

Source: https://habr.com/ru/post/1677651/


All Articles