For days now I;ve been getting the error below with
Error building Player: UnityException: Unable to find suitable jdk installation. Please make sure you have a suitable jdk installation. Android development requires at least JDK 6 (1.6). The latest JDK can be obtained from the Oracle http://www.oracle.com/technetwork/java/javase/downloads/index.html
I have been to just about every site trying all types of ideas to get this to work. Someone out there must have an idea how to properly fix this.
I have messed with the environmental vars (PATH, JAVA_HOME, JDK_HOME) Reinstalled Android SDK. Fooled with the Fond_Java.bat in android tools folder. Reinstalled JDK/JRE 32bit and 64 bit, removed 64bit(twice)
Android SDK opens perfectly find when the Path vars are set correctly. But for some reason Unity will not build the Android player.
Is it because I'm using the Android Beta SDK instead of the Eclipse ADT with ANDROID SDK?
If you installed the SDK using the sdkmanager, you can find the folder in <android tools install location>\platforms\<android sdk folder>.
Since Android apps are written in Java, you will need the Oracle Java compiler and libraries on your system. These are collectively called the Java Development Kit or "JDK" for short. (If you are certain that you already have JDK 1.8 or higher on your computer, such as from taking CS 106A, you can skip to Step 2.)
Set up JAVA_HOME variable. The example is here: http://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/index.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With