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.Connect to Windows Subsystem for Android.Enable access to metro bundler from Windows.Start android virtual device in Windows.Connect to android virtual device in Windows.Connect to android hardware device from WSL2.Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
0 Comments
Leave a Reply. |