Solve the problem of SDK unauthorized

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 Repositoryand Android Support Repositoryas shown below.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325106957&siteId=291194637