如果以前的应用程序在android studio上运行,为什么我不能在vs代码终端/ cmd中运行我的flutter应用程序?

时间:2019-10-11 23:44:01

标签: flutter

当我在VS CODE或cmd中创建的应用程序的文件夹中键入“ flutter run”时,出现此错误:

Launching lib\main.dart on LG H870 in debug mode...
Target file "C:\Users\Kwiat\Documents\\Users\Kwiat\Documents\\Users\Kwiat\Documents\Projects\Flutter\kaka\kaka\build\app\intermediates\flutter\debug\android-arm64/flutter_assets" not found.

FAILURE: Build failed with an exception.

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

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebugArm64'.
> Process 'command 'C:\src\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 2s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

为什么我没有flutter_assets文件,而目标文件路径却很奇怪?如何修复它以运行我的应用?

1 个答案:

答案 0 :(得分:0)

好吧,我刚刚意识到flutter不支持带有'!'的文件夹名称。在里面。我试图在不带“!”的文件夹中创建项目。而且有效。