异常
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: C:\Users\EDY\AppData\Local\Android\Sdk Install missing SDK package(s)
解决
根据accepted 了解到是安装android-26时未被允许;于是执行如下步骤
1、cd 到sdk目录
D:\develop\Android>cd sdk
2、再到tools目录
D:\develop\Android\sdk>cd tools
3、再到bin 目录
D:\develop\Android\sdk\tools>cd bin
4、最后执行sdkmanager --licenses
D:\develop\Android\sdk\tools\bin>sdkmanager --licenses
5、最后会有一大波提示(y/n)
Review licenses that have not been accepted (y/N)? y 1/6: License android-googletv-license: --------------------------------------- Terms and Conditions
6、全部y执行到底,完成后重新刷新android studio 配置即ok