

You can rename the NDK directory if necessary and you can move it to any location on your computer. Android Studio provides everything you need to start developing apps for Android, including the Android Studio IDE and the Android SDK tools.
When uncompressed, the NDK files are contained in a directory called android-ndk-Therefore, it's possible to configure JAVA_HOME to point to a JRE installation, hiding this particular error and causing problems at a later stage. While the JRE's main purpose is to run Java code, the JDK can also compile and debug among other important differences. This will extract as Extracting android-ndk-r23b into folder android-ndk-r23b in /Android directory. This check may seem reasonable at first glance, but we have to consider that both JDK and JRE have a bin folder and both contain an executable java file. Here is the mvn executable check for Linux (Apache Maven v3.5.4): if thenĮcho "The JAVA_HOME environment variable is not defined correctly" >&2Įcho "This environment variable is needed to run this program" >&2Įcho "NB: JAVA_HOME should point to a JDK not a JRE" >&2 If the executable is not found, Maven terminates with the error. How does Maven verify the JAVA_HOME path?īefore running any goals, Maven checks for the existence of the java command in the path specified by JAVA_HOME or by asking the OS for a default JDK installation.
