Open Linbeau22 opened 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.
@Linbeau22 Guess this never got resolved?
I resolved this just install android studio and they will create sdk path for emulator same on your path
salut!!! j'ai le même problème et pourtant j'ai Android studio installe
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
3) Click on '+' icon "Create new Virtual Device"
4) Select any of the Android Device which you want to use as an emulator device and click on Next
5) In next dialog box select the recommended Android version and click on Next
6) Don't change any settings and leave it default and click on Finish
7) The new Emulator Device is added and installed
8) Now Open VS code -> File -> Preference -> Setting
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
10) Now add this same path to systems environment variables PATh by going to windows setting and search environment variables
11) Now go back to VS code and click on CTRL + SHIFT + P and type Emulator
12) Now click on "View Android Emulators"
13) Now the newly installed virtual device shall appear here, select it -
14) The new virtual device shall open via emulator.
Now Happy building Apps 😀
@luccidx big man, ty so much for this detailed procedure. Ur the GOAT
This worked for me!
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](https://user-images.githubusercontent.com/54116868/121249145-dd9b5d00-c869-11eb-8435-9d4ecbc9c331.png)
And here is my emulator path:
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!