DEV Community

Discussion on: Creating a Flutter App on Windows with WSL2

Collapse
 
evgi88 profile image
Evgeniy Bekker

Thanks for the tutorial. I followed it but got stuck at the step of running the emulator from VSC. When I click on View Android emulators then I get 3 errors:

  1. Something went wrong fetching your Android emulators! Make sure your path is correct. Try running this command in your terminal: "false\emulator" -list-avds

I ran the suggested command in CMD and got "The system cannot find the path specified."

  1. Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT

  2. Make sure your Windows path is set correctly! Example: C:\Users\Me\AppData\Local\Android\Sdk\emulator

Do you know how to resolve this?

Collapse
 
evgi88 profile image
Evgeniy Bekker

I found out what my problem was. I didn't switch my VS Code environment to WSL. I installed all the extensions in VSC on the Windows side. I later realized that I needed to connect VSC to WSL by pressing F1 -> WSL: Connect to WSL. And then I installed the mentioned extensions. After that things worked fine.

Collapse
 
mariasitumbeko profile image
Maria Situmbeko

I'm so sorry that I never responded to this. I didn't see any notifications and I never thought to keep checking this article for comments because I didn't expect I'd get any 😅

I'm glad you solved the issue though. Happy coding!