Search Unity

Resolved Android NDK missing

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

  1. odysoftware

    odysoftware

    Joined:
    Jul 21, 2015
    Posts:
    53
    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:
    74
    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,537
    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,829
    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:
    17
    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


     
  9. perza

    perza

    Joined:
    Jun 30, 2013
    Posts:
    4
    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:
    10
    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:
     
unityunity