


Npm ERR! A complete log of this run can be found in: There is likely additional logging output above. Npm ERR! This is probably not a problem with npm.

Npm ERR! android: react-native run-android Run CLI with -verbose flag for more details.Įrror: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 Make sure you have the Android development environment set up.

Please set the JAVA_HOME variable in your environment to match theĮrror Failed to install the app. Otherwise app may fail to launch.ĮRROR: JAVA_HOME is not set and no ‘java’ command could be found in your PATH. Warn Please launch an emulator manually or connect a device. Reason: No emulators found as an output of emulator -list-avds. ‘adb’ is not recognized as an internal or external command,Įrror Failed to launch emulator. Jetifier found 970 file(s) to forward-jetify. You can disable it using “–no-jetifier” flag. Info Running jetifier to migrate libraries to AndroidX. Always shows the message below when I try to run it: This causes me to unable to do react-native run-android. Npm: 6.14.5 - C:\Program Files\nodejs\npm.CMDĪndroid Studio: Version 3.6.0.0 AI-192.7142.135Ĭannot find Android SDK, JDK, or Android_HOME even though its all available, shown below: Node: 12.18.0 - C:\Program Files\nodejs\node.EXE Install missing libraries with a recommended answer: sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6įor information about connecting to USB device see this issue /microsoft/WSL2-Linux-Kernel/issues/23 refering to this guide: /rpasek/usbip-wsl2-instructionsĪ limitation is that WSL2 does not support nested virtualization at this time, so you will not be able to emulate an virtual Android device.CPU: (12) 圆4 Intel® Core™ i7-9750H CPU 2.60GHz However, if you manually install missing libraries, it will complete the installation. You can face an error during installation: "Unable to run mksdcard SDK tool." - see a related question on Stack overflow. You can find a whole guide to start GUI applications including enabling WSL2 here: Īll you need is to install VcSrv or any alternative on Windows side (I recommend paid X410 as an alternative with better UX) and xfce4 on Unix side and then configure Unix display to show in Windows by export DISPLAY=:0Īfter you configure it, you can download and install Android Studio from Please note, that GUI applications are not officially supported by Microsoft, however it works and does not cause any filesystem problems in my case. For running Android Studio in WSL image you need to enable WSL2 which is currently subject of Windows Insider Preview builds.
