[英]Flutter doctor does not see vs code ,VS code does not detect flutter/bin
I downloaded flutter sdk and placed it in /home/sony/flutter/bin i installed vs code and installed flutter and dart dependencies, and tried to create new project , but i saw problem "Could not find a Flutter SDK. Please ensure flutter is installed and in your PATH (you may need to restart)." 我下载了flutter sdk,并将其放在/ home / sony / flutter / bin中,我安装了vs代码,并安装了flutter和dart依赖项,并尝试创建新项目,但是我看到了问题“找不到Flutter SDK。请确保flutter是并安装在PATH中(您可能需要重新启动)。” i showed location of my flutter sdk throught the button LOCATE SDK in vs code (/home/sony/flutter/bin ) and vs code cannot find flutter sdk(
我通过vs代码(/ home / sony / flutter / bin)中的LOCATE SDK按钮显示了我的fld sdk的位置,而vs代码找不到fld sdk(
flutter doctor shows this thing "Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Linux, locale en_US.UTF-8) flutter doctor显示了此内容“医生摘要(要查看所有详细信息,请运行flutter doctor -v):[✓] Flutter(通道稳定,v1.7.8 + hotfix.4,在Linux上,语言环境为en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [!] Android Studio (version 3.4) ✗ Flutter plugin not installed; [✓] Android工具链-为Android设备开发(Android SDK版本29.0.2)[!] Android Studio(版本3.4)✗未安装Flutter插件; this adds Flutter specific functionality.
这增加了Flutter的特定功能。 ✗ Dart plugin not installed;
art未安装Dart插件; this adds Dart specific functionality.
这增加了Dart特定的功能。 [!] IntelliJ IDEA Community Edition (version 2019.2) ✗ Flutter plugin not installed;
[!] IntelliJ IDEA社区版(2019.2版)✗未安装Flutter插件; this adds Flutter specific functionality.
这增加了Flutter的特定功能。 ✗ Dart plugin not installed;
art未安装Dart插件; this adds Dart specific functionality.
这增加了Dart特定的功能。 [!] Connected device !
[!]已连接的设备! No devices available
没有可用的设备
Problem 问题
There was a bug in the Locate SDK functionality in a previous version of the Dart/Flutter extensions for VS Code that should be fixed in v3.4: 早期版本的VS Code Dart / Flutter扩展中的“ 定位SDK”功能存在错误,应在v3.4中修复:
https://dartcode.org/releases/v3-4/#other https://dartcode.org/releases/v3-4/#other
#1896 : The Locate SDK button now correctly saves the folder you select to your user settings. #1896 :现在,“查找SDK”按钮可以正确将您选择的文件夹保存到用户设置。
Please update to the latest version and if you still have that problem, file an issue on GitHub. 请更新至最新版本,如果仍有问题,请在GitHub上提交问题。 Thanks!
谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.