简体   繁体   English

如何使用vscode调用android模拟器?

[英]How do I used vscode to call android emulator?

How do I used vscode to call android emulator?如何使用vscode调用android模拟器?

I can call iPhone13 & web, but when I used without debugging way, it wasn't call android emulator.我可以调用iPhone13 & web,但是当我没有调试方式使用时,它不是调用android模拟器。 I tried to add android it's show me avdmanager is missing from the Android SDK我尝试添加 android 它显示avdmanager is missing from the Android SDK

Where has problems?哪里有问题? I'd added android studio and create AVD emulator.我添加了 android 工作室并创建 AVD 模拟器。

Because I tried to used flutter to development, so I needs use android, iPhone and web.因为我尝试使用flutter进行开发,所以我需要使用android,iPhone和web。

How can fix it?如何解决?

On the top menu vscode:在顶部菜单 vscode:

Go to View -> Command Palette -> type Flutter: Launch Emulator and chosse it -> select an emulator to launch Go View -> Command Palette -> 键入Flutter: Launch Emulator并选择它 -> select 模拟器启动

if you wanna call iPhoneEmulator must have Xcode fist如果你想调用 iPhoneEmulator 必须有 Xcode 拳头

install iphoneSdk via Xcode通过 Xcode 安装 iphoneSdk

in Vscode you can call emulator via Terminal in Vscode在 Vscode 中,您可以通过终端在 Vscode 中调用模拟器

"flutter run" then select device you need “颤振运行”然后 select 设备你需要

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

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