简体   繁体   English

Flutter医生看不到vs代码,VS代码未检测到Flutter / bin

[英]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.

相关问题 VS 代码中没有设备 - Flutter - No Devices in VS Code - Flutter 无法定位开发设备; 请运行“flutter doctor”以获取有关安装其他组件的信息。 在 VS Code 上 - Unable to locate a development device; please run 'flutter doctor' for information about installing additional components. on VS Code 我刚刚安装了 Flutter、Android Studio 和 VS CODE,但我只是无法获得 flutter 医生来消除以下错误- - I have just Installed Flutter, Android Studio, and VS CODE, but I just cant get flutter doctor to eliminate the following error- 无法在 VS Code 的模拟器中运行 flutter 代码 - cannot run flutter code in emulator in VS Code 颤振医生 --android-licenses 不起作用 - flutter doctor --android-licenses does not work 从 vs 代码中制作 APK - making APK in flutter from vs code 调试 Flutter 应用程序的 VS 代码时出现问题 - Problem while debugging on VS Code for Flutter app 在 VS Code 中在 Android 手机上运行 Flutter 应用程序 - Running a Flutter app on an Android phone in VS Code flutter vs 代码中的问题(无法加载资产) - flutter Problem in vs code (Unable to Load asset) 为什么 Flutter Doctor 找不到名为“android --licences”的选项 - Why does Flutter Doctor not find an option named "android --licences"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM