Unreal Engine Packaging Project For Android to Any Unreal Engine Version

Unreal Engine Packaging Project For Android to Any Unreal Engine Version

Unreal Engine Packaging Project For Android to Any Unreal Engine Version .

Unreal Engine Packaging Project For Android

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

- For Unreal Engine less than 5.1 Download NDK r21d

- For Unreal Engine 5.1 and above Download NDK-r25b

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 .

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 Package game data inside .apk
  • check box Allow large OBB files .
  •  check box Allow patch OBB files .
  • check box Use ExternalFilesDir for UE4Game files
  • 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 then in search box write vr and select the box of start in vr .

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

- 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

5 - Fix Issues of Unreal Engine

- to fix error SDK Not Setup UE5 : SDK Not Setup UE5

- to fix black screen in android 11 and 12 or above you must follow this steps : You uploaded an APK or Android App Bundle which has an activity, activity alias in Unreal Engine

6 - Fix Issues For Upload to Google Play

- to fix We've detected this app uses unsupported version of Play billing in google play : We've detected this app uses unsupported version of Play billing. Please upgrade Billing Library

- to package larg game for google play or to fix No Google Play Store Key : No Google Play Store Key (No OBB found and no store key)