ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.

AS在导入项目时,出现报错:ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-28 Android SDK Platform 28
build-tools;28.0.2 Android SDK Build-Tools 28.0.2
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: I:\SDK
Insert picture description here

Using this Xiongtai method, successfully resolved
https://blog.csdn.net/qq_34817440/article/details/100060319

1. First, cmd enters the tools / bin directory of the installation SDK
2. Execute the command sdkmanager --license to update the license file, the execution process needs to be confirmed many times, all y is executed in the end
Insert picture description here
Insert picture description here
3. Refresh Android studio
Insert picture description here

Published 9 original articles · liked 0 · visits 253

Guess you like

Origin blog.csdn.net/bdwdwks/article/details/105108555