When building an Android APK in Unity 4.6.1, I’m getting the following error:
“Unable to find suitable jdk installation.
Please make sure you have a suitable jdk installation. Android development requires at least JDK 7 (1.7). The latest JDK can be obtained from the Oracle Java Downloads | Oracle”
But I do have JDK 7 installed. Also I still have Unity 4.6.0 installed and that is still building an APK just fine.
I had the same issue, and I think I saw several posts about it. Try removing all JRE and JDK installations, then install the latest Java 7 JDK. Also add JAVA_HOME environment variable, and add the path to JDK to the PATH environment variable.
Hmm… but why would it be complaining when 4.6.0 is still quite happy (I’m on a Mac btw)?
Have work to do at the moment so bit wary of mucking around with JDK right now. Will stick with 4.6.0 for the time being. Just wondered if anyone else had had this?
Same here, I only had to install the latest JDK from the oracle website.
That being said, I was initially confused because I had the JRE installed but not the JDK. So you might have the latest java version but missing the developer toolkit.
i have unity 4.6.1 and unity 5.1… and installed JDK 1.8
The problem is when i build game in 4.6 it ask for suitable jdk 7 but when i build in unity 5.1 it build perfectly without any error… why this happens??
i think like it was mentioned above by mikhail111777 we have to create a path link or variable in windows or the C drive then copy and paste the link in the jdk directory in unity