
Alternatively, you can open BaseEngine.ini and provide them under the section. If you have multiple installations of these components, or have installed them in non-standard directories, you can manually provide their paths here. When these fields are left blank, they fall back on a set of default paths used by the installation process in the previous sections.

You can find the SDK paths by opening Edit > Project Settings, navigating to the Platforms > Android > Android SDK section. If you need to support an earlier version of Unreal Engine alongside 4.25 or later, use the Android Studio setup in this document, then follow the instructions in this section to target the path for the version of Android Studio you need. This is most likely to be the case if you have an installation of Unreal Engine alongside an earlier version that used CodeWorks.ĭo not install CodeWorks and Android Studio at the same time, otherwise you will receive errors. However, if you are using an earlier version of the Unreal Engine alongside Android Studio, you may need to manually target your SDK paths to be compatible. If you followed the instructions above without encountering problems, Unreal Engine will automatically associate the SDK paths for the Android SDK, the current Android NDK version, and the Java Development Kit (JDK). You should see a folder containing the required NDK version. The install directory for NDK should be C:/Users//AppData/Local/Android/SDK/ndk/, where "username" is your login name for your computer. This script will download and install the required version of Android NDK for you in your Android home directory. Restart your computer for all changes to take effect. When the installation completes, press any key to dismiss the command prompt. You can find the needed NDK version for your version of Unreal Engine in the Android Development Requirements page.īefore setting up the required SDK and NDK components on your computer, you need to install Android Studio. If you need to support an earlier installation of Unreal Engine refer to the section on Manually Targeting SDK Paths. You should make sure that the Unreal Editor and the Epic Games Launcher are both closed to ensure that there are no problems with either the installation of NDK components or setting your environment variables for the engine. This page provides a walkthrough for setting up Android Studio and ensuring that Unreal Engine recognizes these components correctly, and some troubleshooting tips for managing NDK installations and earlier engine builds.

Unreal Engine uses the Android Software Development Kit (SDK) distributed with Android Studio for all essential Android development components, including the Android Native Development Kit (NDK).
