title: How to run Android emulator on windows while using WSL2 with zsh?
body: <p>I'm based on this answer: <a href="https://stackoverflow.com/a/58229368/13495096">https://stackoverflow.com/a/58229368/13495096</a></p>
  <p>I need to develop using <code>react-native</code> in Windows through WSL2.</p>
  <p>I did exactly what the answer says and after a few hours of solving some errors, got to the point where:</p>
  <ul>
  <li>WSL2 is installed and running (Ubuntu 20.04 LTS)</li>
  <li>Android Studio is installed on Windows 10 (Pro x64);</li>
  <li>ADB is with the same version in both WSL2 and Windows (1.0.32);</li>
  <li>$PATH is configured properly (below) in my .zshrc file:</li>
  </ul>
  <pre class="lang-sh prettyprint-override"><code># Android SDK
  
  export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
  export JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/
  export ANDROID_SDK_ROOT=/usr/lib/android-sdk
  export ANDROID_HOME=/Android/Sdk
  export PATH=$PATH:$ANDROID_HOME/emulator
  export PATH=$PATH:$ANDROID_HOME/tools
  export PATH=$PATH:$ANDROID_HOME/tools/bin
  export PATH=$PATH:$ANDROID_HOME/platform-tools
  export PATH=$PATH:$JAVA_HOME/bin
  export PATH=$ANDROID_SDK_ROOT/cmdline-tools/tools/bin:$PATH
  </code></pre>
  <p>I start a device on Android Studio (Windows) and in Powershell, when running <code>adb devices</code>, it returns:</p>
  <pre><code>List of devices attached
  emulator-5554   device
  </code></pre>
  <p>When I run <code>adb devices</code> on my WSL terminal, it returns only <code>List of devices attached</code>, with nothing else.</p>
  <p>Based on the linked answer, <strong>it's possible to do it</strong> but I can't. How can I make that happen? What am I missing?</p>
  <p>I'm moving from OS X to Windows and I never tried Linux.</p>