

This file (one or the other) is the same as the one you added ANDROID_HOME to if you were following the React Native Getting Started for Linux. bash_profile files: export JAVA_HOME=/jre On linux, you can set JAVA_HOME by adding this line to your. That directory's full path is what you need to set JAVA_PATH to (thanks to for his answer). I'll answer my own questions and sponfeed my fellow linux users:ġ- To point JAVA_HOME to the JRE included with Android Studio first locate the Android Studio installation folder, then find the /jre directory.

Set up your Android development environment: Make sure you have an Android emulator running or a device connected and have Please set the JAVA_HOME variable in your environment to match theĬould not install the app on the device, read the error above for details. gradlew installDebug).ĮRROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. This is the error when I run react-native run-android: Starting JS server.īuilding and installing the app on the device (cd android &. I've already created the project using the terminal.

I have also read the troubleshooting section. I started from a clean linux install and installed everything required as per the "Building Projects with Native Code" tab. I've followed step by step the official Getting Started.
