[英]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.当我按下运行,即在vscode
中Start 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.