Using the Android emulator on Windows 10 with WSL2

The Android Device Manager installed with Visual Studio 2019.
if [[ -e /usr/lib/jvm/java-8-openjdk-amd64 ]]; then
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH="$PATH:$JAVA_HOME/bin"
# Android tools
if [[ -e $HOME/android-sdk-tools ]]; then
export PATH="$HOME/android-sdk-tools:$HOME/android-sdk-tools/bin:$PATH"
export PATH="$HOME/.android/platform-tools:$PATH"
export ANDROID_HOME="$HOME/.android"
export ANDROID_SDK_ROOT="$HOME/.android"
export REPO_OS_OVERRIDE="linux"
adb kill-server 2> /dev/null
export ADB_SERVER_SOCKET=tcp:$(cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2):5037

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

#JVM(Java Virtual Machine)

The Fundamentals of Software Development: Principles, Parameters, and Practices

Coding Practice for Rust

How to Set Up Ambassador API Gateway with ALB Ingress Controller

UAT Resourcing for third party projects

Securing an ASP.NET Core Razor Pages App With OAuth

Creating a Hugo site on GitHub Pages

This Past Week I Learned: Java Object-Oriented Programming — Inheritance

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adrien Pellegrini

Adrien Pellegrini

More from Medium

Temperature Converter App: Android Kotlin App

Cross Platform(IOS & Android)

Flutter coding in system

Create a custom BLE peripheral device using Android mobile

Implement Android SplashScreen API and App Icon: USITCC Mobile App Competition