Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Resolved Failed to build Android

Discussion in '2022.2 Beta' started by optimise, Nov 25, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,137
    It seems like editor failed to detect JDK and maybe also SDK and NDK. I already install official Android module and tick all the options. The External Tools at Preference also point to the correct recommend path but it show "You are missing recommend JDK/SDK/NDK ..." warning.


     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    Hi, which Unity version is this? I assume you've installed it via HUB?
     
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,137
    Ya. Unity 2022.2.0f1 (1c1f8590be28)
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    I don't see 2022.2.0f1 in HUB, only 2022.2.0b16 version is available. Which HUB version are you using ?
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    In any case, please verify that <install_path>2022.2.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK exists.
     
  6. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,137
    Here's it's but doesn't work
    upload_2022-12-8_15-56-19.png
     
    Last edited: Dec 8, 2022
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    But does that path exist on your disk?
     
  8. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,137
    Ya. Actually is that because it's still old version of JDK?

    upload_2022-12-8_16-34-55.png
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,956
    Check release file for the version, it should contain JAVA_VERSION="11.0.14.1"

    I still don't understand how you installed 2022.2.0f1, since it's not present in HUB