Run a flutter app on Windows Subsystem for Android
- 1 minutes read - 149 wordsKeep WSA running
WSA seems sometimes will exit after a while idle time. I need to run the following command to keep it running.
adb connect YOUR_IP_ADDRESS
Run App
According to How to use Windows Subsystem for Android as a development tool, there are several ways to run flutter apps in WSA.
Android studio
When I try to run a project of my company in Android studio, I kept get the error "An unexpected packet was received before the handshake". However the simple project in Write your first Flutter app, part 1 is fine.
VSCode
I can successfully run it. VSCode consume less resources than Android Studio
WSA vs Android Emulator.
WSA consume less resources than Android Emulator.