(Case 1201831) Failed to build Android Build

The build failed because of missing Android NDK but I’m sure I already install Android NDK at Unity Hub.

1 Like

I’ve installed the new 2019.3.0f1 release candidate but I cannot make any IL2CPP Android build because the installed version of the Android NDK is “not found” and when I go to the Preferences → External Tools the Android NDK Installed with Unity (recommended) is checked but the warning under it is “you are missing the recommended Android NDK. Install the recommended version with Unity Hub”.
Well this is the version installed with Unity Hub. Reinstalling Unity doesn’t help with the problem nor does re-importing the project. It’s a new empty project.

When manually setting the path that installed by the Unity Hub it says that the version is incorrect. Even though when reading out the version of the NDK it is the exact same version as it should be?
So either the check is broken or something else in Unity internally is broken for the NDK

After going back to 2019.2.14 it tries to use the NDK of 2019.3, which is weird because it is ticked to use the NDK that comes installed with Unity Hub, it’s almost as if it cannot detect its own version and use the NDK that got installed there.

Everything did work on 2019.2.13 (before installing 2019.2.14 and 2019.3.0f1)

Seems like I’m not the only one:

1 Like

Looks like a regression. We’re investigating: Unity Issue Tracker - [Android] Editor shows that the Android NDK is not recommended even though it is installed from the Hub

2 Likes

Temporary fix that worked for me:
Manually set the NDK path (it should be something like “C:\Program Files\Unity\Hub\Editor\2019.2.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\android-ndk-r16b”) and RESTART unity.

1 Like

Yeah it’s a subfolder that the default path didn’t account for.
I didn’t have to restart the editor only add the ‘android-ndk-r16b’ folder to the path and build again.

1 Like