简体   繁体   English

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

[英]Why can't i run my flutter app in vs code terminal/cmd if my previous apps went on android studio?

When i type "flutter run" in folder of my app created in VS CODE or cmd i get this error:当我在 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)

Why i haven't got flutter_assets file and Target file path is so weird?为什么我没有 flutter_assets 文件并且目标文件路径如此奇怪? How to fix it to run my apps?如何修复它以运行我的应用程序?

Ok, i just realised that flutter doesn't support foldernames with'.'好的,我刚刚意识到 flutter 不支持带有“。”的文件夹名称。 in it.在里面。 I tried to create project in folder without '!'我试图在没有“!”的文件夹中创建项目and it worked.它奏效了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法从 android studio 构建或运行我的 flutter 应用程序,但它可以从命令行运行 - I can't build or run my flutter app from android studio but it works from the command line 当我运行 flutter 设备时,即使已连接,我也看不到我的设备。 我可以使用 Android Studio 访问我的设备,但不能使用 CMD 或终端 - When I run flutter devices I don't see my device even if it is connected. I can access my devices with Android Studio but not with CMD or terminals 为什么在编码时无法在 VS Code 中调试我手机上的 Flutter App - Why can't debug my Flutter App on my phone in VS Code while coding 当我在 flutter android 工作室运行我的应用程序时: - when i run my app in flutter android studio : 为什么我不能在浏览器中运行我的 Flutter 应用程序? 为什么没有网页文件夹? - Why can't I run my Flutter app in a browser? Why isn't there a web folder? 无法使用 VScode 和 Android Studio Emulator 启动我的 flutter 应用程序 - Can't launch my flutter app with VScode and Android Studio Emulator 为什么我的 VS 代码终端无法识别“颤动”一词? - Why my VS code terminal is not recognizing the term 'flutter'? 为什么我在 android 工作室编写代码时会出错并且无法运行应用程序 - why i get errors when i wright my code in android studio and cannot run app 如何在我的 Flutter 应用程序中运行 Python 代码 - How can I run Python code in my Flutter app 我的 flutter android 工作室终端不工作 - My flutter android studio terminal doesn't work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM