Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Resolved Android NDK missing

Discussion in '2019.3 Beta' started by Azedune, Jun 3, 2019.

  1. odysoftware

    odysoftware

    Joined:
    Jul 21, 2015
    Posts:
    57
    its already in 2.2.2 - but you have to reinstall unity so it changes the path ;)
     
  2. BurningThumb

    BurningThumb

    Joined:
    Apr 28, 2008
    Posts:
    77
    I used HUB to install the NDK but the Editor did not find it. So I manually selected the HUB installed NDK in the editor preferences. The Editor still complains that it is the wrong NDK version but it did build the .abb and it runs so I guess its a Unity Hub / Editor bug.
     
  3. Pranay1Knight

    Pranay1Knight

    Joined:
    Jan 3, 2019
    Posts:
    1
    Yes,worked for me.‍:)
    Here is link on YouTube:
     
  4. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,596
    Same issue.
    Switched the Android project from mono to IL2CPP and it did "required" NDK which was already set...

    Set the default location bu still shows up the warning "You are missing the recommanded android NDK ot the following path :
    Folder "android-ndk-r19" is located there.

    It is working if I set the NDK path to :
     
  5. Fdudka

    Fdudka

    Joined:
    Jul 27, 2015
    Posts:
    16
    Bug is still present in 2019.2.17f1.
    If you don't do all of this below you won't be able to share with google play!!

    1) Use the HUB and download the up to date version and check all the boxes and sub boxes of Android modules

    2) Go to Unity folder and delete everything inside the SDK folder.

    3) Download old version of Android SDK
    Android NDK, Revision 16b (December 2017)
    https://developer.android.com/ndk/downloads/older_releases.html
    Mac OS X android-ndk-r16b-darwin-x86_64.zip 839630771


    4) Then extract the folder and ONLY add the sub files inside Unity SDK folder

    5) in Unity, Preference-> External Tools -> Uncheck : Android NDK installed with Unity

    6) IL2CPP

    7) Check Build App Bundle inside the build settings


    ps: don't forget you need to set a Keystore key.
     
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,974
    Please make sure you are using the latest Hub version to install the NDK.
     
  7. aquilis007

    aquilis007

    Joined:
    Aug 11, 2016
    Posts:
    4
    Eu mudei a localização:

    COM ERRO:
    C: \ Arquivos de programas \ Unity \ Hub \ Editor \ YourVersion \ Editor \ Data \ PlaybackEngines \ AndroidPlayer \ NDK \ android-ndk-r19.

    SEM ERRO:
    C: \ Arquivos de programas \ Unity \ Hub \ Editor \ YourVersion \ Editor \ Data \ PlaybackEngines \ AndroidPlayer \ NDK

    Coloquei todos os arquivos na pasta android-ndk-r19 dentro da pasta NDK.
     
  8. OldKing_Wang

    OldKing_Wang

    Joined:
    Jan 25, 2015
    Posts:
    21
    same issue with Unity 2019.3.0f6 Hub 2.2.2 Mac

    How to fix:

    1) download ndk19c from

    https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip -- Windows 64
    https://dl.google.com/android/repository/android-ndk-r19c-darwin-x86_64.zip -- Mac

    2) unzip the file ,and copy the folder to

    /Applications/Unity/Hub/Editor/(version)/PlaybackEngines/AndroidPlayer/NDK --Mac

    3) change the source.properties at

    /Applications/Unity/Hub/Editor/(version)/PlaybackEngines/AndroidPlayer/NDK/source.properties

    to :

    Pkg.Desc = Android NDK
    Pkg.Revision = 19.0.5232133


     
    Raghavendra likes this.
  9. perza

    perza

    Joined:
    Jun 30, 2013
    Posts:
    6
    Same issue with Unity 2019.3.0f6 Hub 2.2.2, Windows.

    Fixed by manually setting the path to same NDK install folder that is already used by Unity.
     
  10. Pavel_D

    Pavel_D

    Joined:
    Nov 17, 2013
    Posts:
    11
    Unity 2019.3.0f6 Hub 2.2.2, Windows, Some Result/Problem, Success if setup NDK (from unityhub) Path to Sub Foulder /NDK/android-ndk-r19
     
  11. Snitem

    Snitem

    Joined:
    May 18, 2016
    Posts:
    3
    On Linux I had to do some more steps to get everything running. I put together a video:
     
  12. Raphael-Jeongho-Eom

    Raphael-Jeongho-Eom

    Joined:
    Sep 8, 2012
    Posts:
    36
    Thank you @Snitem it works perfectly!
     
    Snitem likes this.
  13. araz01

    araz01

    Joined:
    Aug 2, 2016
    Posts:
    53
    thats not solving it, thats alternative... i need to solve and do it directly, my pc has NO space, i need to use external options to function or else i cant.. Problems
     
  14. ecv80

    ecv80

    Joined:
    Oct 1, 2017
    Posts:
    22
  15. vpmobisolution

    vpmobisolution

    Joined:
    Apr 26, 2020
    Posts:
    1
  16. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,596
  17. RSH1

    RSH1

    Joined:
    Jul 9, 2012
    Posts:
    184
    How can I possibly be getting this error when I've installed the latest version of Unity? Why does the latest version of Unity on the Hub come with the wrong NDK version?

    Which NDK version should I download and where should I get it from?
     
    HumzaYounas likes this.
unityunity