AminoffZ / wsl2-avd-connector

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:PowerShell 83.9%Language:Batchfile 16.1%