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
在这里插入图片描述

用了这位兄台的方法,成功解决
https://blog.csdn.net/qq_34817440/article/details/100060319

1.首先cmd 进入到安装SDK的tools/bin目录下
2.执行命令sdkmanager --license 更新 license 文件,执行过程需要多次确认,全部y执行到底
在这里插入图片描述
在这里插入图片描述
3.重新刷新一下android studio
在这里插入图片描述

发布了4 篇原创文章 · 获赞 0 · 访问量 57
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 游动-白 设计师: 上身试试

分享到微信朋友圈

×

扫一扫,手机浏览