Home > Back-end >  Emulator works in Android Studio but not VS Code
Emulator works in Android Studio but not VS Code

Time:10-22

I'm running emulated devices in android studio just fine, but when i try running it in VS Code, I'm get this error: "Failed to launch Pixel 2 API 27: Error: Emulator didn't connect within 60 seconds"

saw some videos and guides, but they all say to reinstall the emulator or wipe the emulated device, which doesn't help.

what could be the problem?

trying to use this for a flutter project that i'm trying to create, and it kind hurts testing.

CodePudding user response:

I found your problem is the same as this

Steps:

Open Android Studio Tools -> AVD Manager Virtual Device -> Actions (Refer Image) Click On Stop Now Start Emulator Now it's working fine :)

or please visit that link Failed to launch`

CodePudding user response:

Apparently, the only way to run the emulator, is to run the device in Android studio, and then run the app in visual code.

  • Related