Android Studie 安装 SDK无权限Failed to install the following Android SDK packages as some licences have not been accepted.
重新安装 Android Studio后出现了下面的错误,系统不能正常build工程。 Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;28.0.3 Android SDK Build-Tools 28.0.3 platforms;android-28 Android SDK Platform 28 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: D:\software\sdk
造成问题的原因是电脑上之前已经安装过SDK,没有接受许可协议。 解决办法: 找到SDK文件的地址是在tools\bin目录中win键+R–输入cmd–进入到命令行界面,通过以下代码找到可以处理licences的文件 输入sdkmanager --licenses 全部同意即可选择Y
|