android studio 配置sdk时提示如下错误

ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.
麻麻蛋~

根据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
ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.

相关文章:

  • 2021-04-07
  • 2021-10-22
  • 2021-07-18
  • 2021-03-29
  • 2021-08-10
  • 2021-03-30
  • 2021-06-13
猜你喜欢
  • 2021-11-25
  • 2021-06-03
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案