【问题标题】:Gradle task AssembleDebug failedGradle 任务 AssembleDebug 失败
【发布时间】:2020-11-10 23:14:38
【问题描述】:

我在 vs 代码中构建了一个基本的颤振应用程序。我没有对颤振所做的默认应用程序进行任何更改。我在手机上运行它。

Launching lib\main.dart on POCO F1 in debug mode...
Checking the license for package Android SDK Build-Tools 28.0.3 in C:\Users\HOME\AppData\Local\Android\sdk\licenses
License for package Android SDK Build-Tools 28.0.3 accepted.
Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)".
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" ready.
Installing Android SDK Build-Tools 28.0.3 in C:\Users\HOME\AppData\Local\Android\sdk\build-tools\28.0.3
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" complete.
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" finished.
Checking the license for package Android SDK Platform 28 in C:\Users\HOME\AppData\Local\Android\sdk\licenses
License for package Android SDK Platform 28 accepted.
Preparing "Install Android SDK Platform 28 (revision: 6)".
"Install Android SDK Platform 28 (revision: 6)" ready.
Installing Android SDK Platform 28 in C:\Users\HOME\AppData\Local\Android\sdk\platforms\android-28
"Install Android SDK Platform 28 (revision: 6)" complete.
"Install Android SDK Platform 28 (revision: 6)" finished.

然后它给出了这个错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > java.io.IOException: The request could not be performed because of an I/O device error

* 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 46m 45s
Exception: Gradle task assembleDebug failed with exit code 1

flutter 医生没有给出任何问题

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.10586], locale en-IN)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.47.2)
[√] Connected device (1 available)

• No issues found!

我现在不知道该怎么办。

【问题讨论】:

    标签: android flutter gradle visual-studio-code


    【解决方案1】:

    您可以尝试运行flutter clean 删除构建目录。

    如果build 目录没有被删除,请尝试:

    然后尝试重新构建/部署您的应用。

    【讨论】:

      猜你喜欢
      • 2021-06-30
      • 1970-01-01
      • 2020-10-25
      • 2019-11-11
      • 2020-10-31
      • 2019-11-05
      • 2021-06-24
      • 2022-10-14
      • 2021-10-11
      相关资源
      最近更新 更多