Install with default settings including API 34 and if prompted to install API 33/32/31 uncheck the box
After installation is finished go to More Action -> SDK Manager
Go to SDK Platforms tab -> Select Android 8 (API Level 26) and Android API 34 (API Level 34)
Go to SDK Tools tab -> Under Android SDK Build-Tools select 26.0.3, 30.0.3 and 34.0.0
Navigate to C:\Users\USERNAME\AppData\Local\Android\Sdk\build-tools, open folder 26.0.3 and rename the file d8 to dx. Now open folder lib and rename d8 to dx. Do the same with folders 30.0.3 and 34.0.0.
4) Install NDK
Open Android Studio 4 and go to More Action -> SDK Manager
Go to tab SDK Tools -> Under NDK select ‘21.3.6528147’
5) Setup the Unreal Engine
Open Unreal Engine 5.3.0 from Epic Launcher and follow the instructions given below:
Go to Edit > Project Settings
Go to Android tab under Platforms
Under APK Packaging > Press Configure Now and Accept SDK
Enter Package Name and other details about your app
Minimum SDK version = 21
Target SDK version = 34
Install Location = Auto
Tick Package game data inside .apk
Tick Force small OBB files
Under App Bundles > Tick Generate bundle (AAB)
Under Build > Tick Support arm64
Now go to Android SDK under Platforms
Paste SDK location from Android Studio > SDK Tools
Pasting NDK location – Go to SDK location in file explorer > NDK > NDK version folder, copy the location and paste
Paste Java location from C/Program Files > Java > Version folder, copy the location and paste
6) Sign the project
Run ‘cmd’ app as administrator
Type ‘cd C:\Program Files\Java\jdk-11\bin’ to navigate to java bin folder
Navigate to folder ‘C:\Program Files\Java\jdk-11\bin’, copy the file ExampleKey.keystore and paste in project folder ‘C:\Users\USERNAME\Documents\Unreal Projects\PROJECTNAME\Build\Android’
In Unreal Engine, navigate to Project settings -> Platforms -> Android -> Distribution signing and enter the details used for generating the keystore file (as given below)
7) Package the project
In Unreal Engine go to Platforms -> Android -> Package project
Select any folder location where you want to save the files