DiemasMichiels / emulator

Run Android emulator and iOS simulator easily from VScode!
MIT License
100 stars 34 forks source link

Something went wrong fetching you android emulators #39

Open Linbeau22 opened 3 years ago

Linbeau22 commented 3 years ago

I read the other thread that's similar to this issue but mine is a little different. This is the error I'm getting: image

And here is my emulator path:

image

It looks like the e in emulator is being recognized as a special symbol and I'm not quite sure why I have the exact path shown above pasted in User, Remote[WSL:Ubuntu], and in Workspace. I've tried different combinations of paths but I can't seem to fix this issue. Can someone please help resolve this issue? Thanks!

DiemasMichiels commented 3 years ago

Hey, thanks for your issue. I looked into your issue today but haven't been able to solve it yet. (It is an issue on our side)

The problem is that the extention thinks you are on a linux pc and not on a windows, therefore it wants to execute the command differently.

The linux path should be something like /mnt/c/Users/Beau/AppData/Local/Android/Sdk/emulator but it doesn't seem like the extention has access to it.

I'm going to do some more research on it when I have more time but currently I cannot make any promisses on a fix for this.

MakanaMakesStuff commented 2 years ago

@Linbeau22 Guess this never got resolved?

NardT commented 1 year ago

I resolved this just install android studio and they will create sdk path for emulator same on your path

EnockAkiba commented 1 year ago

salut!!! j'ai le même problème et pourtant j'ai Android studio installe

luccidx commented 4 months ago

The main reason why you are not invoking any emulator is because, you haven't created any virtual device in Android studio. Thus no emulator shall be present to invole from the path.

Simple way to set this up is : 1) Install and open Android studio ->click on Open -> Open your kotlin /flutter project.

2) Click on tools -> Device Manager image

3) Click on '+' icon "Create new Virtual Device" image

4) Select any of the Android Device which you want to use as an emulator device and click on Next image

5) In next dialog box select the recommended Android version and click on Next image

6) Don't change any settings and leave it default and click on Finish image

7) The new Emulator Device is added and installed image

image

8) Now Open VS code -> File -> Preference -> Setting image

9) Click on Extension -> Emulator Configuration and paste the following path "C:\Users{PROFILE}\AppData\Local\Android\Sdk\emulator" in both Emulator path and Emulator Path windows

image

10) Now add this same path to systems environment variables PATh by going to windows setting and search environment variables image

image

11) Now go back to VS code and click on CTRL + SHIFT + P and type Emulator image

12) Now click on "View Android Emulators" image

13) Now the newly installed virtual device shall appear here, select it - image

14) The new virtual device shall open via emulator. image

Now Happy building Apps 😀

Rain6435 commented 4 months ago

@luccidx big man, ty so much for this detailed procedure. Ur the GOAT

BrianKvin commented 3 months ago

This worked for me!