Missing JDK

Hello, please can someone help me?

I’ve been trying to fix the same missing JDK issue that seems to have plagued other users after a 2019 editor update. I’ve deleted/downloaded/reinstalled the correct android module a number of times to no success, even with disabledfirewall and virus software.
Without the JDK the editor won’t load beyond the build settings - the error messages says that the JDK directory is not set, and the box in preferences links to an empty programme file. Yesterday I literally spent about 15 hours banging my head against the wall trying the different solutions I found in the forums, such as reinstalling different versions of the editor and downloading close alternatives. Ive no prior experience in development so this is all new to me. Feel like I’ve exhausted all avenues now, I was so excited about this yesterday but now I’m close to giving up!

Hey there. As this isn’t an AR issue, we’re going to move this thread to one of our Mobile forums.

Here is a picture of my setup with unity hub, external tool settings, and the folder its pointing at with the JDK. (newer unity version though)

Do you have the “SDK and NDK tools”, and OpenJDK parts of the module selected?

You say it points the JDK to an empty folder in external tools?

If you have indeed installed the modules correctly but not finding them, the next thing to try would be search on google and directly install JDK and/or android NDK, SDK, and uncheck “JDK installed with unity” and just point it to the folder with the JDK…and/or NDK,SDK. (or figure out where unity is putting them and point that folder correctly)

I too have run in to snags in the past where whatever reason you burn up a few hours with this. I have had to manually install one or all of those SDKs and point to them, sometimes with android studio. When I went to take this screenshot I was actually surprised I’m currently using the fully automatic “sdk installed with unity”.

If there’s not particular reason for version, you can try to update to unity 2020, seems like the android SDK portion is working automatic for me anyway