Skip to content

Minimal Android Virtual Device emulator on Windows that can link to WSL2.

License

Notifications You must be signed in to change notification settings

AminoffZ/wsl2-avd-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSL2 AVD Connector

Minimal Android Virtual Device emulator on Windows that can link to WSL2.

Reference Guide

Highly recommend going through this guide to make this work as intended.

Installing Flutter on WSL2 - Windows 10 (no affiliation)

Setup

On Windows

  1. Install the Android dependencies

  2. Make sure you have set the following to your PATH:

  • <Android Installation Destination>\cmdline-tools\tools\bin
  • <Android Installation Destination>\emulator
  • <Android Installation Destination>\platform-tools
  1. Run the connector.bat.

In WSL

  1. echo -e "export ADB_SERVER_SOCKET=tcp:\$(cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2):5037" >> $HOME/.bashrc;

  2. source $HOME/.bashrc

About

Minimal Android Virtual Device emulator on Windows that can link to WSL2.

Topics

Resources

License

Stars

Watchers

Forks