Problem Description
An error was reported when starting the project, as follows:
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 24.0.2].
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
solution
The online solution is to run the authorization script in the corresponding directory, and then a license file will be generated, but my authorization file already exists.
Finally, find the solution on github: you need to download two more things in the SDK Manager Google Repository
and Android Support Repository
as shown below.