无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter

时间:2021-01-08 12:32:21

标签: android ios android-studio flutter dart

我刚刚开始 Flutter 在线课程。我遵循了讲师所做的每一步,但是当我运行该项目时,出现此错误:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
     platforms;android-29 Android SDK Platform 29
  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\ASUS\AppData\Local\Android\sdk

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

我没有得到他们在那里所说的任何内容,而且我是堆栈溢出的新手,所以请不要介意我的问题是否不好。任何帮助表示赞赏,谢谢!

这是我使用的模拟器: The picture of the emulator

1 个答案:

答案 0 :(得分:0)

您需要打开 SDK Manager 窗口并接受那里的许可协议。