you are missing the recommended JDK, no matter how many I install the module (Unity 2019.4 LTS)

After switching to 2019.4 LTS I got this error (using Windows 10)
You are missing the recommended JDK. Install the recommended version using Unity Hub.

alt text

I installed the JDK using Unity Hub many times now, still the same error. Tho I don’t think it’s getting installed.
As you can see below, the “OpenJDK” checkbox remains blue no matter how many I try to install it.

alt text

When I tried downloading and installing the JDK (JDK 1.8.0_181) myself I get this error instead:
You are missing the recommended JDK, versions other than 1.8.0 are not officially supported.

I’ve solved the problem. with some attached bullshit. You need to do a manual install of this.

Into your empty OpenJDK folder. This is a x64 install which is where my unity installation is. After installing the first portion correctly. If you are prompted for further installs you can cancel the installation. this is a working fix to unitys bullshit.

This could be your antivirus blocking any java installations. Just temporarily disable your antivirus and then try re-adding the openJDK module to your unity installation and it should show the check mark in grey now.

Had this problem on Linux with Unity 2020.3.27f1. I fixed it by giving execution permission to the files in the bin directory of OpenJDK. Located on my computer at:

~/Unity/Hub/Editor/2020.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin

i.e. I ran the command from the OpenJDK folder:

chmod ug+x bin/*

I also had 2019.2 already installed when I added 2019.4, and the jdk wasn’t installed. I just manually browsed in Unity preferences to the 2019.2 jdk (on a mac, it’s /Applications/Unity/Hub/Editor/2019.2.13f1/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS) so simple fix but annoying.

I solved this by switching off the beta Unity Hub (v3.0) back to the regular one (v2.5.1). I then uninstalled the Unity version in question and reinstalled it with the tools.,I solved it by switching from the beta Unity Hub back to the regular version, then reinstalling the unity version and tools.

In my case, the same problem was solved just by updating Unity Hub to the latest version.

This is so annoying. Why is this a problem now. i get the same thing and ive tried countless efforts to resolve the problem.

{UPDATE 5 MINUTES LATER} ive solved the problem. with some attached bullshit. You need to do a manual install of this Java Archive Downloads - Java SE 8u211 and later

Into your empty OpenJDK folder. This is a x64 install which is where my unity installation is. After installing the first portion correctly. If you are prompted for further installs you can cancel the installation. this is a working fix to unitys bullshit.

I’m facing the same problem. Tried installing it manually and from unity hub but the result is same.
:frowning:

I had the same problem with 2019.4.3f1. I moved the files from the NDK/android-ndk-r19 folder one level up (so that they are in the NDK folder, and not in the “android-ndk-r19” folder).

Please file a bug report so they get to work…

Specifying the path from a previous Unity version didn’t work in spite of java version being 1.8.0 as the warning requires.
I copied the contents from C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\
to
C:\Program Files\Unity\Hub\Editor\2019.4.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\ with no success at all.
EDIT:
Somehow it works now with the copied version of OpenJDK. It may be due to restarting Unity?

problem fixed here : - YouTube

I had problem with JDK,SDK and NDK - nothing was installed properly. I was using beta version of unity hub (3.0.0). Uninstalling unity and switching to regular version of unity hub (2.4.5) did solve the problem for JDK and SDK, but NDK folder was empty. Downloading it and unzipping to NDK folder did work!

I had the same problem using unity hub beta. It does not install the android support module properly. Switching back to the Production channel and reinstalled it without any issue.

I had this problem, the cause was the antivirus that delete the files of openjdk folder.

Before trying to do all these things, check if your unity hub is on the most recent version, I spend an hour and a half with those errors and they fixed them when I updated the unity hub.