I haven't tried it, but I suspect it won't work out of the box. In order to create Flutter apps, you need a few binaries that run on the host machine (e.g., gen_snapshot and sky_snapshot). We provide pre-built versions of these binaries for Mac and Linux, but we don't provide any pre-built versions of these binaries for Windows.
On Mon, 8 Aug 2016 at 15:29 Adam Barth <aba...@google.com> wrote:I haven't tried it, but I suspect it won't work out of the box. In order to create Flutter apps, you need a few binaries that run on the host machine (e.g., gen_snapshot and sky_snapshot). We provide pre-built versions of these binaries for Mac and Linux, but we don't provide any pre-built versions of these binaries for Windows.I'm don't mean in a VM, WSL is basically running native Linux binaries on Windows (it works be rewriting syscalls).
That said, I'm curious about why you need to run things on the "host" machine; whatever the reason for that might be an issue for WSL
(for example if it's to access a device over USB, I doubt that works over WSL either).
We use the tools that come with Android Studio to communicate with Android devices over USB. Presumably we'd want to use the Windows version of Android Studio on Windows. There might be some work to integrate the flutter command line tool with the Windows version of Android Studio, but I won't expect that to be too difficult.
How does the Flutter command line tool communicate with the Android Studio tools? If it's by executing commands it probably won't work (I guess WSL can't execute Windows applications) but if it's over a TCP connection then maybe it'll work just fine.It executes them as commands.