Android SDK 证书没接受问题

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to install the following Android SDK packages as some licences have not been accepted.
        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

 

windows下处理方法:

1、控制台到Android sdk的安装目录,例如默认目录(C:\Users\xxx\AppData\Local\Android\Sdk\tools\bin)

2、输入sdkmanager --licenses

Android SDK 证书没接受问题_第1张图片

上面就是有5个证书没有接受的意思,依次输入y即可

你可能感兴趣的:(Android)