- Home /
2019.3.12f1 - Unity Hub Not installing OpenJDK
As per version 2019.3.12f1, and last Unity Hub version, I can't install OpenJDK. It says the component is missing, and I go to Add modules, check the Open JDK, under Android. It starts downloading, installing, but nothing changes, actually.
Sometimes there's an error message on Unity Hub saying that all files were not downloaded or are corrupted. I have another version here, 2019.3.0f6 that has OpenJDK working fine. Then I simply tried copying & pasting files from OpenJDK to that current version. Editor recognizes it, but when building it fails.
Even now at 2019.3.15f1 OpenJDK still won't install. I've tried uninstalling, rebooting and reinstalling but the directory is empty and going in to Add $$anonymous$$odules still shows it checked but not installed.
No fix yet????
Same issue here , I have another version here, 2019.3.0f6 that has OpenJDK working fine. Then I simply tried copying & pasting files from OpenJDK to that current version. walgreenslistens
Answer by rmmarks · Jul 28, 2020 at 09:18 AM
I had this issue yesterday and found a suggestion on another thread to temporarily disable Avast while doing the Android and OpenJDK install in Unity Hub. I set Avast to disable for 10 minutes and the install using Unity Hub worked. I suspect it is the virus checker silently denying the connection driven by Unity Hub to get the OpenJDK.
I dont use avast, so the avast thing isn't an issue for me. I fixed it myself by using the download URL from the modules.json file, however even though it's like a 70mb file and I have 75down the file still took like 30 $$anonymous$$s to download by manually grabbing it.
Disable the antivirus and then install it from Hub actually works, thank you!!!
Answer by Muskie · May 21, 2020 at 09:38 AM
Try a manual install of the JDK, and point Unity at it:
1: go to https://www.oracle.com/java/technologies/javase-jdk8-downloads.html and download the latest JDK8 build for Windows and install it.
2: Back in Unity, under Preferences>External tools, Uncheck "JDK Installed with Unity", and then point it where you installed the JDK.
Hopefully this should work for you!
If you click the link it says "We can't find the page you were looking for."
Had to perform these steps, seems it hasn't been fixed since $$anonymous$$ay XD
Answer by Brit1974 · Jul 15, 2020 at 04:54 AM
I ended up copying the OpenJDK directory from an older version ( 2019.3.5f1 ), and it seems to work okay. But this is only a workaround. Unity needs to get this fixed.
Answer by JackPS9 · Jul 26, 2020 at 07:01 PM
Same issue here, I tried on 2020.2.0a18 it didn't download link to oracle doesn't work I also tried to download it via the 2019.3.0f6 version still not downloaded. Got it from 2018.4.25f1 however it states that it's not the recommended JDK and that I should install from Unity Hub which doesn't want to work.
Your answer
Follow this Question
Related Questions
Export to android: CommandInvokationFailure: Failed to build apk. 1 Answer
Why the color of the fog change the color of the ground(object)? 0 Answers
I am getting the following error when building a pc game to android 0 Answers
Cannot install apk in android 8.0.0 (API level 26) 0 Answers
UnityARCore: Can't build for android. 0 Answers