[5.8] Turnkey reports Android SDK Invalid although SetupAndroid.bat completed with exit 0

Summary

Submitter: Onikan Global Solutions LLC. Contact email: frank at onikanglobal dot com. Account: franklinonik209 at gmail dot com (FrankieDcreator).

Environment: Unreal Engine 5.8 built from source (GitHub branch 5.8, commit f97cae4acf019789ed431e0ac28d47e15422784c), Windows 11 Home Build 26300, ASUS ROG GM700, Ryzen 7 8700F, RTX 5070 12GB (driver 32.0.15.7652), 32GB RAM, VS 2022 Build Tools MSVC 14.44, Windows 11 SDK 26100. Project: a Chaos-vehicle game project with Python editor test probes.

Turnkey reports Android SDK Invalid although SetupAndroid.bat completed with exit 0. Installed: NDK 27.2.12479018, platform android-36, build-tools 36.1.0. ANDROID_HOME, JAVA_HOME and NDKROOT are set. Log line: Turnkey Platform Android Status Invalid, MinAllowed_Sdk r27c, MaxAllowed_Sdk r29, Current_Sdk empty. The SDK is installed under the Administrator profile while the editor usually runs as a different Windows user.

What Type of Bug are you experiencing?

Platform Mobile

Steps to Reproduce

  1. Run SetupAndroid.bat — it completes with exit 0 and installs NDK 27.2.12479018, platform android-36 and build-tools 36.1.0.
  2. Set ANDROID_HOME, JAVA_HOME and NDKROOT.
  3. Run the editor as a different Windows user from the Administrator profile under which the SDK was installed.
  4. Open Turnkey or attempt Android device detection.
  5. Observe Turnkey reports Android Status Invalid, MinAllowed_Sdk r27c, MaxAllowed_Sdk r29, Current_Sdk empty.

Expected Result

After SetupAndroid.bat completes with exit 0 and the SDK, NDK and build-tools are installed, Turnkey should report the Android SDK as valid, or clearly state which path or setting it could not find.

Observed Result

Turnkey reports Android SDK Invalid with Current_Sdk empty, even though SetupAndroid.bat completed with exit 0 and NDK 27.2.12479018, platform android-36 and build-tools 36.1.0 are installed.

Affects Versions

5.8

Platform(s)

Android

Additional Notes

Questions for Epic: How does Turnkey in 5.8 locate the Android SDK, and what is the supported setup when the SDK sits under a different user account? Submitter: Onikan Global Solutions LLC, contact frank at onikanglobal dot com.