Search Issue Tracker

Fixed in 2019.3.X

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 (22)

  1. ahmedaniss

    Jun 06, 2021 10:14

  2. unity_l3Ac7R_V3zAEkQ

    Nov 01, 2020 07:19

    When changing the file source.properties -Pkg.Revision to 19.0.5232133 worked. Thanks SHOLZ

  3. ingkamon16764daivo

    Oct 27, 2020 18:10

    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

  4. alarm656

    Aug 01, 2020 22:26

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

  5. 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!

  6. RSH1

    May 05, 2020 13:47

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

  7. 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)

  8. 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

  9. 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

  10. 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.

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.