【问题标题】:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' - Flutter无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系 - Flutter
【发布时间】:2021-04-14 03:52:29
【问题描述】:

我刚开始学习 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

【问题讨论】:

标签: android ios android-studio flutter dart


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2021-02-16
    • 2021-07-25
    • 2020-06-30
    • 2021-07-25
    • 2021-09-10
    • 1970-01-01
    • 2022-01-14
    • 2020-04-15
    • 2019-12-23
    相关资源
    最近更新 更多