Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

(SOLVED) Android NDK missing

Discussion in '2019.3 Alpha' started by Beritra, Jun 3, 2019.

  1. Beritra

    Beritra

    Joined:
    Dec 27, 2015
    Posts:
    3
    Hi :D

    UPDATE 1 (04 June 2019) : @Nachip recommended me to install the previous version - Unity 2019.2.0b4, and I use It, It works perfectly.

    UPDATE 2 (14 June 2019) : @fherbst recommends to download NDK r19a (https://dl.google.com/android/repository/android-ndk-r19-windows-x86_64.zip). I did, then I extracted the file, replaced the content of the original one (copy it to be safe) by the new content and It works wonderfully.

    I installed - Unity 2019.3.0a4 Personal with Unity Hub 2.0.0.
    ISSUE : "You are missing the recommended Android NDK..." in "Preferences/External Tools/".

    What I did :
    1. Installed Android SDK & NDK Tools by the lastest Unity Hub (screenshot 1).
    2. Tried to "Build" and "Build & Run", not working (screenshot 2).
    3. Checked in "Preferences/External Tools/" (screenshot 3).
    4. I located manually with this path "C:\Program Files\Unity\Hub\Editor\2019.3.0a4\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\", error window (screenshot 4).
    If someone can give me a way to solve this problem, It could be helpfull for the community.

    Ps : If I made a mistake in english, please forgive me, I am fr, I tried to my best to write correctly.

    Thank you for your help :D

    Screenshot 1 :
    2.PNG

    Screenshot 2 :
    1.PNG

    Screenshot 3 :
    0.PNG

    Screenshot 4 :
    3.PNG
     
    Last edited: Jun 14, 2019
  2. Nachip

    Nachip

    Joined:
    Aug 15, 2016
    Posts:
    1
    I get the same issue. i solve it by changing the unity version to 2019.2.0b4 then downloading the NDK using the unity HUB
     
    CrandellWS likes this.
  3. Beritra

    Beritra

    Joined:
    Dec 27, 2015
    Posts:
    3
    I installed the version 2019.2.0b4 of Unity, and It works like a charm.

    @Nachip Thank you :D
     
    CrandellWS likes this.
  4. CrandellWS

    CrandellWS

    Joined:
    Oct 31, 2015
    Posts:
    90
  5. jooleanlogic

    jooleanlogic

    Joined:
    Mar 1, 2018
    Posts:
    327
    I just checked the download list for latest 0a5 and it's still set to download ndk-r16b. Can anyone who's installed this say whether 2019.3.0a5 has reverted to the r16b ndk or does it still want ndk19 once installed?
     
  6. TanmayTNT87

    TanmayTNT87

    Joined:
    Jun 3, 2019
    Posts:
    5
    So do i need to re download version Unity 2019.2.0b4 ?
     
  7. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    206
    For me it didn't work with the one in 2019.2.0b4/b5, as those are NDKr16 as well, but instead had to use r19(a).

    Here's the exact version Unity is asking for, for anyone with the same issue.

    upload_2019-6-11_15-9-55.png

    Note that the most recent NDK r19 download from Google also doesn't work as it is too new:
    upload_2019-6-11_15-12-45.png

    This one (NDK r19a) works:
    https://dl.google.com/android/repository/android-ndk-r19-windows-x86_64.zip
    (Unity still displays "You are not using the recommended Android NDK" when doing that but building works)
     
    altankosar and jooleanlogic like this.
  8. Beritra

    Beritra

    Joined:
    Dec 27, 2015
    Posts:
    3
    Thank you @fherbst for your help :D I updated the post.
     
  9. jooleanlogic

    jooleanlogic

    Joined:
    Mar 1, 2018
    Posts:
    327
    Thank you fherbst. Legend! Worked for me. Just changed 'windows' to 'linux' in filename.
     
  10. WingNova

    WingNova

    Joined:
    Aug 10, 2016
    Posts:
    7
    Thank you so much this helped me. Your the best!
     
    wavekeyboard likes this.
  11. WalkerStudio

    WalkerStudio

    Joined:
    Feb 27, 2014
    Posts:
    4
  12. galloper

    galloper

    Joined:
    Aug 5, 2017
    Posts:
    6
    Please be aware that Unity 2019.3.0a7 has the same issue as mentioned above - it still wants NDK r19 (64-bit) (19.0.5232133), latest r19 from Google won't work, older ones won't work, except for the one that's linked here..
    Do they read these forums?
     
  13. jfgalvez

    jfgalvez

    Joined:
    Jul 12, 2019
    Posts:
    1
    Why my Unity ver. 2019.3.0a8 still dont work even though I install the that linked here?? :(
     
    Last edited: Jul 12, 2019
  14. galloper

    galloper

    Joined:
    Aug 5, 2017
    Posts:
    6
    I used this one:
    Did you set the new NDK location in Unity?
     
  15. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,487
    ROBYER1 likes this.
  16. thejox

    thejox

    Joined:
    Sep 29, 2015
    Posts:
    2
  17. DeliaF_Manea

    DeliaF_Manea

    Unity Technologies

    Joined:
    Jul 9, 2019
    Posts:
    9
    Can you make sure that you uninstall it with all of the modules, update HUB’s version and reinstall Unity with the Android module? Then go to the install directory, find the NDK folder, open the source.properties file and verify that NDK’s version is 16. Let me know if you did this and the issue is still there.
     
  18. bilalakil

    bilalakil

    Joined:
    Jan 28, 2018
    Posts:
    6
    @DeliaF_Manea I've a fresh install (as fresh as possible, just reformatted the computer) and via Unity Hub installed 2019.2.0f1 with Android + NDK + OpenJDK. Here's what I see at
    /Volumes/Mac500GB/Applications/Unity/2019.2.0f1/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/source.properties
    :

    Code (CSharp):
    1. Pkg.Desc = Android NDK
    2. Pkg.Revision = 16.1.4479499
    When I try to build it stops at Android NDK not found.

    Attached image of preferences showing that it's using everything from the hub.
     

    Attached Files:

  19. DeliaF_Manea

    DeliaF_Manea

    Unity Technologies

    Joined:
    Jul 9, 2019
    Posts:
    9

    Could you attach an editor.log file/ picture of it where the failed building process could be seen?
     
  20. bilalakil

    bilalakil

    Joined:
    Jan 28, 2018
    Posts:
    6

    Attached Files: