Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Unity3d can not find Java for Android SDK

For days now I;ve been getting the error below with

  • Unity 3d v4.3.2f1
  • jdk1.8.0_11
  • Android SDK v0.8

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?

like image 640
Yogurt The Wise Avatar asked Jul 24 '14 23:07

Yogurt The Wise


People also ask

Where is JDK installed Unity?

If you installed the SDK using the sdkmanager, you can find the folder in <android tools install location>\platforms\<android sdk folder>.

Does Android SDK require Java?

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.)


1 Answers

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

like image 150
Eugene Avatar answered Oct 14 '22 17:10

Eugene