【问题标题】:why i cannot run any flutter project?为什么我不能运行任何颤振项目?
【发布时间】:2021-03-13 16:34:44
【问题描述】:

我正在使用 android studio 运行颤振项目,现在我无法运行任何项目,并且每次都得到相同的错误: FAILURE:构建失败并出现异常。

* 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\moham\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.

* Get more help at https://help.gradle.org

BUILD FAILED in 29s
Exception: Gradle task assembleDebug failed with exit code 1

【问题讨论】:

    标签: android-studio flutter dart


    【解决方案1】:

    您应该删除 config Android studio 文件夹并重新安装它以满足所有要求。

    C:\Users[你的名字文件夹]

    【讨论】:

      【解决方案2】:

      您似乎在安装后没有接受所有许可证。 尝试运行:

      颤振医生--android-licenses

      然后在每次询问时按y接受许可

      好像duplicate of this

      【讨论】:

      • 我在哪里可以运行这个?我无法在终端中运行它
      • 在底部的Android studio中,您可以打开“终端”选项卡并在那里尝试
      • 为了纠正自己,它必须在知道有效的颤振路径和颤振命令的终端中运行
      • 是的,我知道我应该在Therminal 中运行它,但我不能,它一直告诉'flutter' 不是内部或外部命令、可运行程序或批处理文件。
      • 这意味着你还没有设置 env 路径来颤振。请检查此stackoverflow.com/a/53465355/4684512。我无法指导您,因为我没有窗户:/
      猜你喜欢
      • 1970-01-01
      • 2021-04-28
      • 2020-03-12
      • 2022-06-15
      • 2020-10-17
      • 1970-01-01
      • 2011-07-29
      • 2021-07-08
      • 1970-01-01
      相关资源
      最近更新 更多