Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Resolved UnityHub installs invalid OpenJDK version for 2023.3.0b7

Discussion in 'Unity 6 Beta' started by Kichang-Kim, Feb 16, 2024.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,030
    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.
     
    JamesArndt likes this.
  2. pzolla

    pzolla

    Joined:
    Apr 21, 2020
    Posts:
    19
    Same here
     
  3. ProfPivec

    ProfPivec

    Joined:
    Sep 21, 2012
    Posts:
    28
    Any updates to fixing this ?
     
  4. manugil

    manugil

    Unity Technologies

    Joined:
    Jan 13, 2020
    Posts:
    88
    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.

    SCR-20240222-lqfz-2.png
     
    ProfPivec likes this.
  5. ProfPivec

    ProfPivec

    Joined:
    Sep 21, 2012
    Posts:
    28
    Also appears that the SDK required is not installed by the HUB

    SDK Platform Tools version 33.0.1 < 34.0.0.
     
  6. ProfPivec

    ProfPivec

    Joined:
    Sep 21, 2012
    Posts:
    28
    so the Build still does not work with the JDK as above.

    IS there a new SDK as well please ?
     
  7. manugil

    manugil

    Unity Technologies

    Joined:
    Jan 13, 2020
    Posts:
    88
    Make sure you press "Update Android SDK" if this popup appears:

    Screenshot 2024-02-22 at 13.33.06.png
     
  8. ProfPivec

    ProfPivec

    Joined:
    Sep 21, 2012
    Posts:
    28
    Only this pops up...

    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."
     
  9. manugil

    manugil

    Unity Technologies

    Joined:
    Jan 13, 2020
    Posts:
    88
    @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.
     
    Kichang-Kim likes this.
  10. ProfPivec

    ProfPivec

    Joined:
    Sep 21, 2012
    Posts:
    28
    All now good. Thank you.