Unreal Engine Packaging For Android to Any Unreal Engine Version

0
626
Unreal Engine Packaging For Android to Any Unreal Engine Version
Unreal Engine Packaging For Android to Any Unreal Engine Version

Unreal Engine Packaging For Android to Any Unreal Engine Version

To Package Game in unreal engine you need setup jdk and sdk and ndk versions to can package game perfectly and to setup jdk and sdk and ndk follow this steps :-

1 – JAVA JDK 1.8.0_77

in this article How to Install Java JDK 1.8.0_77 do the same i did to download and install java jdk 1.8.0_77 and after download and install java jdk 1.8.0_77 go to pc icon then C Drive then Program Files then Java then jdk1.8.0_77 and copy folder path like this

C:\Program Files\Java\jdk1.8.0_77

then go to unreal engine then choose Edit then Project Settings and scroll to Android SDK and in the Location of JAVA paste java folder path like this

C:\Program Files\Java\jdk1.8.0_77

2 – SDK

in this article How to Install SDK do what i did to install sdk from android studio and after sdk installed go to Android Studio and Open SDK Manager and copy Android SDK Location and go to Unreal Engine and choose Edit then Project Settings and scroll to Android SDK and in the Location of Android SDK paste Android SDK Location path .

3 – NDK

Download NDK r21d and extract it then open ndk folder and copy ndk folder path then go to Unreal Engine and choose Edit then Project Settings and scroll to Android SDK and in the Location of Android NDK paste ndk folder path and make sure the path end with 21.3.6528147

4 – Setup Android

in the Unreal Engine go to Edit then Project Settings and scroll to Android
– in the APK Packaging Press Configure Now and Press Accept SDK button and if button greyed out that mean it accepted before .
– in the Android Package Name type com.yourcompanyname.yourprojectname
– in the Minimum SDK Version type 21 and make sure install sdk 21 in android studio sdk .
– in the Target SDK Version open android studio then SDK Manager and type latest version of sdk
– in Install Location choose Auto
– check box for Package game data inside .apk
– in the App Bundles check box for Generate bundle (AAB)
– in the Build check box for support arm64
– if you packaging for Oculus in the Advanced APK Packaging in the option Package for Oculus Mobile devices press Add Element option two time to add Oculus Quest 2 and Oculus Quest and check option Remove Oculus Signature Files from Distribution APK
– in the Destribution Signing you must have key.keystore file and to make this file follow steps :-
in Taskbar open Search box and type cmd and run cmd as adminstrator then copy this line
cd C:\Program Files\Java\jdk1.8.0_77\bin
then in cmd press Ctrl + v to paste it and Press Enter
after that copy this line
keytool -genkey -v -keystore key.keystore -alias Mykey -keyalg RSA -keysize 2048 -validity 10000
then in cmd press Ctrl + v to paste it and Press Enter
then enter any pass
then repeat pass
then type firstandlastname
then type orgunit
then type org
then type city
then type state
then type 12345 for country code
then type yes
then enter pass again
then repeat pass
after this cmd will type storing key.keystore that mean key was created
to get key.keystore file go to Pc icon then C Drive then Program Files then Java then jdk1.8.0_77 then bin folder and press k it will scroll to key.keystore file
copy file and go to your project folder then Build folder then Android folder and paste the key.keystore file .
Go to Unreal Engine then go to Edit then Project Settings and scroll to Android and scroll to Distribution Signing and in the
Key Store type key.keystore
Key Alias type Mykey
and type Key Store Pass
then repeat Key Pass
Last step is in Unreal Engine Go to Edit then Project Settings then scroll to Packaging and in the Project change Build Configuration to Shipping
– check box for Full Rebuild
– check box For Distribution
then fix error SDK Not Setup UE5 from here : SDK Not Setup UE5
– in the Unreal Engine Choose File then Package Project then Android then Android (ASTC) and Create New Folder and Open it then Select Folder to package your project .
– to run project in android 11 and 12 or above you must do this step :
fix android 12 and above for Generate APK to run game in phone And Generate AAB file to upload game to google play : You uploaded an APK or Android App Bundle which has an activity, activity alias in Unreal Engine