Unty Android Build Error - SDK NDK not found

#1

I am trying to make a workflow to build in Unity for Android.

I keep getting this error.

Android PostProcess task “Detecting Android SDK” took 2580.2742 ms
DisplayProgressbar: Detect Android NDK
UnityException: Android SDK not found
Unable to locate Android NDK.

I am setting the SDK and NDK paths in Unity via
EditorPrefs.SetString(“AndroidNdkRoot”, ndkPath);
EditorPrefs.SetString(“AndroidSdkRoot”, sdkPath);

I have verified that the paths exists, and the contents of those paths are correct.

Any ideas?

0 Likes

#2

Hi there @mbfloydKrikey!

Could you please send thew logfile and enable support access (https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/) so we could investigate a bit? :slight_smile:

0 Likes

#3

I figured it out.

The NDK that was provided was r20, and unity needed darwin r16

0 Likes

#4

Hey @mbfloydKrikey, thanks for sharing! :slight_smile:
Glad to hear you solved it :wink:

0 Likes