1
1
1helpME12018-05-30 17:26:40
Java
1helpME1, 2018-05-30 17:26:40

Unity3d, IntelliJ IDEA don't see JDK. There is a solution?

Windows 10 x64 system.
When choosing an android platform in Build settings on unity, I run into errors:

UnityException: Unable to find suitable JDK installation. Please make sure you have a suitable JDK installation. Android development requires at least JDK 8 (1.8), having JRE only is not enough. The latest JDK can be obtained from the Oracle website:
www.oracle.com/technetwork/java/javase/downloads/j...
UnityEditor.Android.AndroidJavaTools.LocateJDKHome (Boolean allowDialogs)
UnityEditor.Android.AndroidJavaTools.get_javaPath()
UnityEditor .Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.GetSDKBuildToolsDir()
UnityEditor.Android.AndroidSDKTools.UpdateToolsDirectories()
UnityEditor.Android.AndroidSDKTools..ctor(System.String sdkRoot)
UnityEditor.Android.AndroidSDKTools.GetInstance() UnityEditor.Android.AndroidSDKTools.GetInstance()
UnityEditor.Android.AndroidSDKTools.GetInstance()
UnityEditor.Android.ADB.StartServer (UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDeploymentTargetsExtension.GetKnownTargets( UnityEditor.ProgressHandler (progressHandler)
UnityEditor.DeploymentTargets.DeploymentTargetManager.GetKnownTargets (BuildTargetGroup targetGroup, BuildTarget buildTarget) (at C:/buildslave/unity/build/Editor/Mono/DeploymentTargets/DeploymentTargetManager.cs:58)
UnityEditor.Android.AndroidBuildWindowExtension+c__AnonStorey0.<>
UnityEditor.Android.c__AnonStorey0:<>m__0()

IntelliJ IDEA refuses to see SDK.
JDK costs, does not help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Gaydak, 2018-05-30
@1helpME1

you or the path for the JDK was not registered in Path. register and restart the computer.
(how to write the path..look for Path JAVA JDK) there should be a bunch of instructions on google.
or you have JDK 32-bit. and recently they want 64 bits.
delete. download 64 and install.

L
Lesh48, 2020-05-26
@Lesh48

https://drive.google.com/folderview?id=1R_Zq0yo3Eo...
(I have windows 7 x64) put the contents of the OpenJDK folder (which I dropped above) into the unity version OpenJDK folder. (It worked for me) (example path: C:/Program Files/Unity/Hub/Editor/(version here)/Editor/Data/PlaybackEngines/AndroidPlayer (there will be an OpenJDK folder, rather it will be empty))
You can also look at the folder location via Edit=>Preferences=>External Tools.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question