Search Issue Tracker

Fixed in 2019.3

Votes

9

Found in

2019.3.0a4

Issue ID

1159144

Regression

Yes

[Unity Hub][Android][NDK] Integrated NDK version is not compatible with available Unity Hub or Android developer NDK versions

Mobile

-

How to reproduce:
1. Download 2019.3.0a4 trough Unity Hub with Android + NDK/SDK tools, notice that r16b is downloaded
2. Try to do Android IL2CPP build and notice that Editor complains about NDK tools not found
3. Download latest NDK r19 version from Android developer page - https://developer.android.com/ndk/downloads
4. When setting to the newest NDK, you will get the error message "NDK 19.2.5345600 detected. Unity requires NDK r19 (64-bit) (19.0.5232133)."

Reproducible with - 2019.3.0a4
Not reproducible with - 2019.3.0a3

Workaround until the correct version will be downloaded via Hub is to download r19 version from the developer.android directly. Just follow the steps to download the latest ndk r19 version (currently it's r19c) and once you'll have the download link, just delete the letter after the version number, so the link would have only ndk-r19.

Fixed in Unity Hub 2.0.4 version

Comments (19)

  1. Ef22cb3009d90709b9b64bf378aa702d?d=mm

    alarm656

    Aug 01, 2020 22:26

    android-ndk-r21d detected. unity requires r19 unity 2020.10f1

  2. B19926e20a8f361a1dd392149e40048c?d=mm

    Prasen723

    Jun 15, 2020 06:19

    I have downloaded the latest version of NDK r21... But it failed to build so I had to download again r19 and change its package source to 19.0.5232133

    Works for me... Thanks devs!

  3. 0d982ed99520d4060d9227340d00c81b?d=mm

    RSH1

    May 05, 2020 13:47

    Can confirm that "deleting the c" doesn't work for me either

  4. F3b0e9e392cdd91b3b77021efaff3ac0?d=mm

    pevicentini

    Apr 26, 2020 23:53

    You can also open a terminal window in your 'SDK\tools\bin' folder... and type:
    sdkmanager "ndk-bundle" "ndk;19.0.5232133"
    This should download and install the required NDK version inside your SDK folder. You can later move it to another location or reference it from this one.
    (Not tested but should work in theory)

  5. Be7431c8f476e90d1451656ca6c7da4e?d=mm

    Sholz

    Feb 24, 2020 11:24

    Step 1
    Download the NDK (19c)

    Step 2
    Extract the NDK (19c) ..it extracts to android-ndk-r19c..

    Step 3
    Open it and open file source.properties with a txt file

    Step 4
    Rename Pkg.Revision to Pkg.Revision = 19.0.5232133

    Step 5
    Copy file to your installation location..
    Step 6
    Redirect to it with Edit> Preferences in Unity

  6. Be7431c8f476e90d1451656ca6c7da4e?d=mm

    Sholz

    Feb 24, 2020 10:42

    Please the "then delete the "c" after "r19" from it" just does not work for everyone...kinda disappointed ...spent more time upgrading than building a feature...waoow

  7. 67cafeccd2e93148be7832e5ba5df51d?d=mm

    MaxGuernseyIII

    Feb 02, 2020 04:31

    The official build, 2019.3.0f6, still requires r19 instead of r19c. As previously mentioned, just copy the link you would ordinarily have downloaded and then delete the "c" after "r19" from it.

  8. 5b9dd77d1cb8dd469bf70be8417824d4?d=mm

    jaskof

    Nov 08, 2019 17:37

    in case anyone here is still struggling here's the NDK version that you need:
    https://dl.google.com/android/repository/android-ndk-r19-windows-x86_64.zip
    a downgrade to unity 2019.2 is also a workaround

  9. 16e94268f3e8a3c343baf65e2f22f477?d=mm

    SandeepNsk_SpiritualGamer

    Aug 26, 2019 14:00

    changing the file source.properties -Pkg.Revision to 19.0.5232133 worked.For the people who downloaded the NDK manually "source.properties" stays inside the downloaded ndk folder.It was my bad searching the installed unity folder for "source.properties".Thank you devs

  10. 16e94268f3e8a3c343baf65e2f22f477?d=mm

    SandeepNsk_SpiritualGamer

    Aug 26, 2019 13:04

    issue happens in 2019.3.0.a12. what is the path for source.properties in Mac.Thanks in advance

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.