gpt4 book ai didi

android - Flutter Gradle构建问题

转载 作者:行者123 更新时间:2023-12-03 05:31:36 25 4
gpt4 key购买 nike

我只是在我的ubuntu机器上设置了flutter,当执行“flutter run”时出现此错误。

这个错误已经使我困扰了几个小时。

Launching lib/main.dart on TECNO C8 in debug mode...
Initializing gradle... 0.9s
Resolving dependencies... 2.2s

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not create service of type DefaultUserHomeScopedCompileCaches using UserHomeScopeServices.createCompileCaches().

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

最佳答案

您可以执行文件>使缓存无效,然后重新启动,然后尝试再次运行

关于android - Flutter Gradle构建问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59043087/

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