1

我正在尝试在 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
4

1 回答 1

1

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

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

确保有完整的文件。 构建工具中的文件

您可以从另一个系统复制文件,从此处输入链接描述下载或尝试重新安装 SDK。

于 2020-10-14T09:38:06.797 回答