Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

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,129
    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,917
    Hi, which Unity version is this? I assume you've installed it via HUB?
     
  3. optimise

    optimise

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

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,917
    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,917
    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,129
    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,917
    But does that path exist on your disk?
     
  8. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    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,917
    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