无法确定任务 ':app:compileFlutterBuildDebug' 的依赖项

问题描述

我是 Flutter 新手,在运行我的应用程序时遇到这个问题无法确定任务 ':app:compileFlutterBuildDebug' 的依赖关系

FAILURE: Build Failed with an exception.

* Where:
Script '/home/vitika/snap/Flutter/common/Flutter/packages/Flutter_tools/gradle/Flutter.gradle' line: 1149

* What went wrong:
Could not determine the dependencies of task ':app:compileFlutterBuildDebug'.
> 1

* 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 1m 48s
Running Gradle task 'assembleDebug'...         

当我检查 Flutter.gradle 时,没有 1149 行。

颤动医生 -v:

[✓] Flutter (Channel master,2.3.0-17.0.pre.120,on Ubuntu 20.04.2 LTS 5.8.0-55-generic,locale en_GB.UTF-8)
    • Flutter version 2.3.0-17.0.pre.120 at /home/vitika/snap/Flutter/common/Flutter
    • Upstream repository https://github.com/Flutter/Flutter.git
    • Framework revision c42ec8592f (5 weeks ago),2021-05-28 22:34:02 -0400
    • Engine revision aca8aa2335
    • Dart version 2.14.0 (build 2.14.0-165.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/vitika/Android/Sdk
    • Platform android-30,build-tools 30.0.3
    • Java binary at: /home/vitika/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /home/vitika/android-studioFlutter plugin can be installed from:
      ? https://plugins.jetbrains.com/plugin/9212-Flutter
    • Dart plugin can be installed from:
      ? https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.56.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • ASUS X00TD (mobile) • 100.80.74.27:5555 • android-arm64  • Android 10 (API 29)
    • Chrome (web)        • chrome            • web-javascript • Google Chrome 90.0.4430.93

• No issues found!

提前致谢:)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)