Lidor Cohen
Lidor Cohen

Reputation: 11

Emulator works in Android Studio but not VS Code

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.

Upvotes: 0

Views: 1994

Answers (3)

Nauman Ahmad
Nauman Ahmad

Reputation: 21

Wipe data of emulator: open Android studio-> open device manager -> you will get list of virtual device -> open device menu option -> click on wipe data

then again start emulator in Android Studio. after successful launch your emulator might also work in VS code

Upvotes: 1

Lidor Cohen
Lidor Cohen

Reputation: 11

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

Upvotes: 0

Muh. Andika Rusli
Muh. Andika Rusli

Reputation: 89

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`

Upvotes: 0

Related Questions