问题描述


Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following 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.解决办法

意思是我们的 Android SDK 协议没有被接受呐 ~

接受一下就可以了 ~

 

步骤


1. 首先要输入 flutter doctor,查看运行环境如何

它会告诉你哪里有问题,并且告诉你修复方案,乖乖听话照做就好 ~

Failed to install the following Android SDK packages as some licences have not been accepted.解决办法

2. 执行 flutter doctor --android-licenses 接受 Android SDK 协议

每份协议都会征求是否同意,统一输入 y 接受即可

3. 再次输入 flutter doctor,查看运行环境如何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
  • 2022-01-19
猜你喜欢
  • 2021-06-03
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案