【发布时间】:2020-09-08 02:24:17
【问题描述】:
尝试在 Flutter 中开始编程 Dart。我想使用 VSCode 而不是 Android Studio,但是当调试会话开始时,我遇到了以下问题。
我在 link 中尝试了所有方法,例如 删除缓存、删除锁定文件、杀死 PID 任务cmd,但没有任何效果。
但是,我能够在 Android Studio 中运行测试应用,但我仍然想通过 VSCode 学习。如果您能分享任何可能有帮助的建议,那就太好了:)
谢谢!
FAILURE: Build failed with an exception.
* What went wrong:
Gradle could not start your build.
> Could not create service of type FileHasher using BuildSessionServices.createFileHasher().
> Unexpected lock protocol found in lock file. Expected 3, found 0.
* 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
Flutter SDK:windows 1.17.1(来自网站) 安卓工作室:3.6.3
【问题讨论】:
标签: android flutter gradle dart visual-studio-code