The vEthernet (Wsl) adapter belongs to the public profile Enable access to adb server from WSL2 With Windows Defender Firewall allowing access for the public profile, because Start adb server in Windows adb kill-serverĬhange firewall rule for adb.exe on first usage in Defender Popup or Nexus_5X_API_29) in windows "C:\Program Files (x86)\Android\android-sdk\emulator\emulator.exe" -avd Nexus_5X_API_29 Nexus_5X_API_29) in windows with Android Virtual Device Manager from Android Studio. To debug on a virtual device create a virtual device (e.g. To debug on a hardware device connect to android device via usbip from WSL2 (thanks to Connect USB device to WSLĬonnect to android virtual device in Windows PATH=$PATH:$ANDROID_SDK_ROOT/platform-toolsĮxport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64Ĭonnect to android hardware device from WSL2 bash_profile export ANDROID_HOME=/home/xxx/Android/cmdline-tools/latestĮxport ANDROID_SDK_ROOT=/home/xxx/Android Install Android SDK cmdline tools in WSL2, see here and adjust directory structure, see here.Install java-8-openjdk in WSL2 ( sudo apt-get install openjdk-8-jre).Debug app in Visual Studio Code from WSL2. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |