原因就是某些sdk版本的包没安装。
然后找了好久的答案,说是要在sdk安装目录里的tools工具的bin里面使用cmd命令。
sdkmanager --licenses。
但是cmd运行该命令会出现
ERROR: Failed to install the following Android SDK packages as some licences have not been accepted
可以看见没有–licenses这个选项。
我的解决办法:Android studio里,下面的build日志栏提供了解决办法。。。
ERROR: Failed to install the following Android SDK packages as some licences have not been accepted
点击安装就可以正常跑程序了。。。
真的好烦这些环境配置哦。。。TAT

相关文章:

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