如何修复 Flutter 错误“FAILURE: Build failed with an exception.”?

时间:2021-05-17 02:28:11

标签: android flutter android-studio

我正在使用 Android Studio 开发 Flutter 项目,当我构建应用程序时,出现以下错误

如何解决我的 Flutter 项目引起的这个问题?感谢您的帮助!

C:\Projects\Nexthour Mobile App Flutter Files\.dart_tool\package_config.json does not exist.
Did you run this command from the same directory as your pubspec.yaml file?


> Task :app:compileFlutterBuildDebug FAILED

FAILURE: Build failed with an exception.


* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 17s
1 actionable task: 1 executed

0 个答案:

没有答案