Search Issue Tracker

Fixed

Votes

0

Found in

2020.2.0b7

2021.1.0a1

Issue ID

1284418

Regression

Yes

[Android] Invalid Android NDK Directory get detected when 'Android SDK and NDK Tools' installed through HUB

Hub

-

When 'Android Build Support' Module installed with 'Android SDK and NDK Tools' through HUB then in Editor Preferences Invalid Android NDK Directory(NDK 19.0.5232133) get detected.

Invalid Android NDK Directory -> NDK 19.0.5232133
Recommended Android NDK Directory -> NDK r21d (64-bit) 21.3.6528147

How to reproduce:
1. Open Unity Hub(2.4.1 ) > Installs > 2021.1.0a1
2. Add Modules > Android Build Support > check 'Android SDK and NDK Tools'.
3. Create new project > Switch platform to Android
4. Go to Preferences > External Tools > Android NDK version installed
5. Disable 'Use embedded NDK' and Select a folder where your NDK installed and provide that path

Actual Result:
Invalid Android NDK Directory get installed when 'Android SDK and NDK Tools' installed through HUB

Expected Result:
By Default, Recommended Android NDK Directory should install when 'Android SDK and NDK Tools' installed through HUB

Workaround:
Download and Give the path of Recommended Android NDK Directory externally
https://developer.android.com/ndk/downloads

Reproducible in:
2021.1.0a1

Working Fine on:
2020.2.0b7, 2020.1.8f1

Environment:
Occurring on Windows 10 , Mac 10.15 and Ubuntu 18.04

Note:
-Without workaround unable to build an android player, Build failed with
UnityException: Android NDK not found
-On using workaround able to make android build with 'Mono' Scripting Backend but it failed for 'IL2CPP' Scripting Backend

  1. Response avatar

    Resolution Note:

    Fixed on Hub v2.4.2

Comments (1)

  1. 0f2d76780fc0a396e9f7176ac9afbe9e?d=mm

    Vynh

    Nov 24, 2020 16:29

    I'm running into this issue with 2020.1.0a7

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.