综合技术

bug日记-缺少licences

微信扫一扫,分享到朋友圈

bug日记-缺少licences
0

报错信息

编译打包报错: Android SDK packages as some licences have not been accepted

报错信息如下
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

分析

明显缺少 build-tools;28.0.2
licenses

升级 licenses

  • 首先这肯定是 sdk 包里缺少对应 licenses
    ,命令如下
sdkmanager --update && yes | sdkmanager --licenses

总结

  • 首先 sdkmanager
    等命令行工具在 sdk 的 tools/bin
  • 使用 sdkmanager
    升级命令获取 licenses

阅读原文...


简书

[图]Leatherman推出Free系列工具钳 再也不用指甲打开了

上一篇

AI/数据产品经理需要了解的算法——商品推荐算法

下一篇

您也可能喜欢

评论已经被关闭。

插入图片
bug日记-缺少licences

长按储存图像,分享给朋友