UnityHub installs invalid OpenJDK version for 2023.3.0b7

Hi. From Unity 2023.3.0b7, Android build need Java 17, see release note:

  • Android: JDK 17 is required to build Android apps.

But UnityHub installs OpenJDK 11 so all of Android builds are failed due to invalid JDK version when using embedded OpenJDK.

1 Like

Same here

Any updates to fixing this ?

Sorry you are experiencing this issue. We are working on fixing it by releasing a new Hub version that includes these new JDK changes.

In the meantime, please download the JDK manually for your system:

Once downloaded and unzipped, go to Unity Preferences > External Tools and change the JDK path to the JDK folder you have just downloaded.

9658445--1374821--SCR-20240222-lqfz-2.png

1 Like

Also appears that the SDK required is not installed by the HUB

SDK Platform Tools version 33.0.1 < 34.0.0.

so the Build still does not work with the JDK as above.

IS there a new SDK as well please ?

Make sure you press “Update Android SDK” if this popup appears:

9658580--1374854--Screenshot 2024-02-22 at 13.33.06.png

Only this pops up…

9658667--1374875--upload_2024-2-22_14-55-38.png

and when you click Update Android SDK…

“UnauthorizedAccessException: Access to the path ‘C:\Program Files\Unity\Hub\Editor\2023.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tempToolsDir’ is denied.”

@ProfPivec @Kichang-Kim This issue should be fixed now. Restart the Unity Hub, and then reinstall Unity 2023.3.0b7. The new installation of Unity should come with the correct JDK version.

1 Like

All now good. Thank you.