gpt4 book ai didi

android - Flutter:任务 ':app:packageDebug' 执行失败

转载 作者:行者123 更新时间:2023-12-03 03:10:15 26 4
gpt4 key购买 nike

你好,我用flutter编译的时候遇到了问题

我已经尝试使用 flutter run 进行调试 -- debug 但没有成功我认为这是来自 gradle,但我不知道如何解决这个问题。

    Resolving dependencies...                                           
3,5s

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> Failed to generate v1 signature

* 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 4s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done
5,2s
Gradle task assembleDebug failed with exit code 1

当我运行 flutter doctor 时:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.7.4-pre.27, on Microsoft Windows [version
10.0.17763.503], locale fr-FR)

[√] Android toolchain - develop for Android devices (Android SDK version
28.0.3)
[!] Visual Studio - develop for Windows (Visual Studio Community 2017
15.9.12)
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
MSBuild
VC++ 2017 version 15.9 v14.16 latest v141 tools
Windows 10 SDK (10.0.17763.0)
[√] Android Studio (version 3.4)
[√] VS Code (version 1.35.0)
[√] Connected device (1 available)

! Doctor found issues in 1 category.

请帮帮我感谢您的时间和关注。

最佳答案

在终端中运行 flutter clean 并再次运行

关于android - Flutter:任务 ':app:packageDebug' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56516311/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com