Android You have not accepted the license agreements
The Android Studio SDK Manager provides a lot of components to install, but it's confusing sometimes. You may have no idea which packages to install.
For example, even I did installed the necessary components and accept the license agreements (you can't install it without agreeing), still get the error.
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 Build-Tools 23]. 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. CONFIGURE FAILED Total time: 3.728 secs
Looks like the accept license in SDK Manager is not the same thing in the error message. To set the license do the following
C:\App\Android\android-sdk>mkdir licenses C:\App\Android\android-sdk>cd licenses C:\App\Android\android-sdk\licenses>sublime android-sdk-license
And then paste a SHA string to the file: 8933bad161af4178b1185d1a37fbf41ea5269c55.