Unty Android Build Error - SDK NDK not found

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?

Hi there @mbfloydKrikey!

Could you please send thew logfile and enable support access (Enabling the Bitrise Support user for your app | Bitrise DevCenter) so we could investigate a bit? :slight_smile:

I figured it out.

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

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.