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
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
-
hippogames
Nov 18, 2021 11:10
Regression in 2020.3.22 / Hub 3.0.0
I've created a new bug https://fogbugz.unity3d.com/default.asp?1381876_hp7qtl2snbfbjd19 -
ahmedaniss
Jun 05, 2021 07:48
Problem Fixed here : https://forum.unity.com/threads/android-ndk-missing.689122/page-2#post-7209190
-
ahmedaniss
May 30, 2021 13:24
Problem Fixed Here : https://forum.unity.com/threads/android-ndk-missing.689122/page-2#post-7190290
-
ahmedaniss
May 17, 2021 16:14
Problem fixed here : https://forum.unity.com/threads/android-ndk-missing.689122/page-2#post-7148824
-
Vynh
Nov 24, 2020 16:29
I'm running into this issue with 2020.1.0a7
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
- Mouse and Pointer Events are called incorrectly in ScrollView with XRUIInputModule
- Memory leak occurs when repeatedly minimizing and maximizing the UI Builder window
Resolution Note:
Fixed on Hub v2.4.2