
With a pop-up, or you can check for updates by clicking Help > The following video shows each step of the setup procedure when using the recommendedĪs new tools and other APIs become available, Android Studio tells you Follow the setup wizard in Android Studio and install any SDK packages that it.zip file, unpack the ZIP, copy the android-studioįolder into your Program Files folder, and then open the android-studio > binįolder and launch studio64.exe (for 64-bit machines) or studio.exe exe file (recommended), double-click to launch it. To install Android Studio on Windows, proceed as follows: The following table shows which NDK and Android Studio versions are required or compatible with different versions of Unreal Engine.Setting up Android Studio takes just a few clicks.įirst, be sure you download the latest version of Android Studio. If the entries for SDKPath, NDKPath, and JDKPath do not exist in your DefaultEngine.ini, they will use the default path to the Android home directory. Alternatively, you can open DefaultEngine.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. 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 above how-to sections correctly, Unreal Engine will automatically associate the SDK paths for the Android SDK, the current Android NDK version, and the Java Development Kit (JDK). This issue is addressed in Unreal Engine 4.25.1 and later. Remove the entry in this list for lldb 3.1, but leave the others. If you receive an error stating that a package called lldb 3.1 could not be loaded, open the SetupAndroid script with a text editor, and locate the line of code that reads:Ĭall "%SDKMANAGER%" "platform-tools" "platforms android-28" "build-tools 28.0.3" "lldb 3.1" "cmake 3.404" "ndk 462" Android setup should then proceed normally.

In the event that you receive an error stating that repositories.cfg cannot be loaded, navigate to the folder where it is expected (usually C:/Users/.android/repositories) and create an empty repositories.cfg file.
