Android开发经验谈Android技术知识程序员

bug日记-缺少licences

2019-04-17  本文已影响7人  ifjgm

报错信息

编译打包报错: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.2licenses

升级 licenses

sdkmanager --update && yes | sdkmanager --licenses

总结

上一篇下一篇

猜你喜欢

热点阅读