VSCode中的Flutter初始化 [英] Flutter initializaiton in VSCode

查看:41
本文介绍了VSCode中的Flutter初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用VS Code开发Flutter项目.当我今天打开我的项目时,有一个通知说初始化颤动".这可能要花几分钟的时间,然后才被击中.

此外,诸如"flutter run"之类的所有命令也被执行.和颤抖的医生"完美运行,我可以通过终端运行我的应用程序.但是其他选项(如不调试运行")不起作用,并且代码自动完成功能也未显示任何建议.谁能帮我解决问题.

解决方案

在settings.json文件中,检查"dart.flutterSdkPath"是否正确.可以使用Flutter SDK的正确位置.或将其保留为空白以在项目目录,FLUTTER_ROOT环境变量和PATH环境变量中查找

I've been working on a flutter project using VS Code. And when I opened my project today, there is a notification stating "Initializing flutter. This may take a few minutes", and it's struck there.

Also, all the commands such as "flutter run" and "flutter doctor" are perfectly running and I am able to run my app through the terminal. But the other options such as Run Without Debugging are not working, and also the code auto-complete is showing no suggestions. Can anyone please help me in solving the issue.

解决方案

In the settings.json file check that "dart.flutterSdkPath" has the correct location of the Flutter SDK to use. Or leave it blank to look for it in the project directory, FLUTTER_ROOT environment variable, and PATH environment variable

这篇关于VSCode中的Flutter初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆