【问题标题】:flutter Could not determine the dependencies ':app:compileDebugJavaWithJavac'颤振无法确定依赖关系':app:compileDebugJavaWithJavac'
【发布时间】:2021-01-26 01:39:46
【问题描述】:

我正在尝试在 android studio 上运行第一个 Flutter 项目并一次又一次地收到此错误:(

C:\Users\Pro\flutter_app>flutter run Running "flutter pub get" in flutter_app...                         1.1s Launching lib\main.dart on INE LX1 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to find Build Tools revision 28.0.3

* 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 10s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done                        71.5s Exception: Gradle task assembleDebug failed with exit code 1

【问题讨论】:

标签: android android-studio flutter


【解决方案1】:

确保您在 SDK 中的构建工具中拥有所有文件。

在 Android -> SDK 中找到构建工具。 在 build-tools 中,您可以找到您的 build-tools 版本,此处为 28.0.3。

确保有完整的文件。 Files inside the build-tools

您可以从其他系统复制文件,从enter link description here 下载或尝试重新安装 SDK。

【讨论】:

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