对于android中sdk已经存在的报错问题
Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;30 Android SDK Build-Tools 30 platforms;android-28 Android SDK Platform 30 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:\androidstudio\sdk
报错原因如上
主要原因是电脑上之前已经安装过SDK,
没有接受 许可协议导致的。
首先打开命令行,进入到报错的sdk
路径,找到可以处理licences
的文件
d:
D:\cd androidstudio
D:\androidstudio>cd sdk
D:\androidstudio\sdk>cd tools
D:\androidstudio\sdk\tools>cd bin
D:\androidstudio\sdk\tools\bin>sdkmanager --licenses
Warning: File C:\Users\Administrator\.android\repositories.cfg could not be loaded.
6 of 6 SDK package licenses not accepted.
Review licenses that have not been accepted (y/N)? y 一直y 否则不管用Android Studio
最后重启andio studio
参考:https://www.cnblogs.com/wangjie1990/p/11327584.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?