简体   繁体   English

Vscode 未显示 flutter 的任何可用设备

[英]Vscode not showing any available device for flutter

My vscode was previously showing devices.我的vscode以前显示设备。 But now it does not show any available devices.但现在它没有显示任何可用的设备。 However in the terminal if i run flutter run then it show all the available devices thats means all the devices are connected.但是,如果我在终端中运行flutter run那么它会显示所有可用的设备,这意味着所有设备都已连接。 When i press run ie Start Debugging F5 in vscode then nothing happens.当我按下运行,即在vscodeStart Debugging F5时,什么也没有发生。 I have already installed flutter extension in vscode also.我已经在 vscode 中安装了 flutter 扩展。

在此处输入图像描述

Not any device name is shown in the bottom bar in vscode as shown in above picture.如上图所示,在vscode的底部栏中没有显示任何设备名称。

I just deleted my Flutter directory and installed again.我刚刚删除了我的Flutter目录并重新安装。 It is working now.它现在正在工作。

My issue is i updated flutter version v2.10 to v3.0.2 but my mac is support only Xcode 12.4 but v3.0.2 required Xcode 13. So i downgrade the flutter version then simulator showing in VS-code. My issue is i updated flutter version v2.10 to v3.0.2 but my mac is support only Xcode 12.4 but v3.0.2 required Xcode 13. So i downgrade the flutter version then simulator showing in VS-code.

Just run flutter doctor -v it shows the error.只需运行 flutter doctor -v 它就会显示错误。

✗ Flutter requires Xcode 13 or higher. ✗ Flutter 需要 Xcode 13 或更高版本。

If you're on mac go on terminal and type如果您使用的是 mac,请在终端上输入

open -a simulator

Else if on windows open your android studio and start your andriod simulator否则,如果在 Windows 上打开你的 android studio 并启动你的安卓模拟器

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM