Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unable to locate adnroid ndk

Discussion in 'Editor & General Support' started by justtime, Nov 28, 2019.

  1. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    422
    Hi! I have installed 2019.2.14f recently, with Android tools checked. But while build process this error happens. How could i solve this?
     
  2. mariobuonocore1

    mariobuonocore1

    Joined:
    Mar 15, 2016
    Posts:
    21
    I have this problem too, with the same Unity version.
     
  3. mariobuonocore1

    mariobuonocore1

    Joined:
    Mar 15, 2016
    Posts:
    21
    Hi,
    I solved the problem setting in Preferences... -> External Tools, remove the flag from Android NDK Installed with Unity and set the path (for Windows) as:
    C:\Program Files\Unity\Hub\Editor\2019.2.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\android-ndk-r16b

    It seems that Unity lost the last NDK folder, android-ndk-r16b

    Hope it can help.

    Mario
     
    steelco1326 likes this.
  4. mariobuonocore1

    mariobuonocore1

    Joined:
    Mar 15, 2016
    Posts:
    21
    Hi justtime,
    after resolved the error "Unable to locate Android NDK" I have find other two problems:

    1) Error on running il2cpp.exe
    2) Error with license for android sdk 29 and buid tools 29.0.2.

    I resolved the first error coping the content of the folder:
    C:\Program Files\Unity\Hub\Editor\2019.2.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\android-ndk-r16b
    in folder:
    C:\Program Files\Unity\Hub\Editor\2019.2.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\

    I resolved the second error by setting in Preferences... -> External Tool my android sdk installed with Android Studio.

    I think something is wrong with SDK and NDK released with Unity 2019.2.14f1.

    Hope it can help.
    Regards,

    Mario
     
  5. antpaw

    antpaw

    Joined:
    Oct 25, 2016
    Posts:
    8
    Yes, I can confirm this major bug
     
  6. sgamerw

    sgamerw

    Joined:
    Dec 11, 2018
    Posts:
    2
  7. steelco1326

    steelco1326

    Joined:
    Dec 12, 2019
    Posts:
    1
    Thank you so much i was trying to solve this FOR HOURS and your solution was perfect, just a note for anyone wondering where the SDK path is i found it in "C:/users/XX/Appdata/Local/Android/Sdk"