Android Toolchain Error

If you’ve previously been able to build for Android and find yourself back here… For me this solved the issue:

  1. I got the Android SDK location from Android Studio, browsed there to see what versions I had installed. Notably, I had …sdk/ndk/21.4.7075529 installed. The output log in Unreal told me “use NDK r21 to NDK r23” so this one seemed right.
  2. I copied the location of the above directory and pasted into the “Location of the Android NDK” in Project Settings → Android SDK.
  3. In the same settings, I set the NDK API level to “android-21”, used “matchndk” for the SDK.

Then I was able to build for Android again. (You likely will have to accept the SDK license under Project Settings → Android)