Dear Community,
I saw lots of people suffering from how to create AAB in unreal engine. There is not enough supply in internet or they are seperated, since I’m including my solution here.
1- Choose armeabi-v7a from project settings.
2- Build your project with etc1a or whatever you want to support. (tick 2.0 opengl for wider device support)
3- Go under Project/Intermediate/Android/APK/Gradle/app/src/main/jniLibs
4- Copy armeabi-v7a folder out of somewhere. Take backup(copy) of it.
5- Choose arm64-v8a from project settings.
6- Build your project with etc1a or whatever you want to support. (tick 2.0 opengl for wider device support)
7- Copy your **armeabi-v7a folder to **Project/Intermediate/Android/APK/Gradle/app/src/main/jniLibs. Keep in mind you will have there both **armeabi-v7a and arm64-v8a **folders.
8- Install Android Studio
9- Open project, choose gradle under your project Project/Intermediate/Android/APK/Gradle
10- Let it process. Wait for build. (you can update but you dont have to update gradle from notification)
11- Go to build.gradle for your app (it may be app-app or gradle-app configuration) and add android section as below (add from split)
[FONT=courier new]android{ [FONT=courier new]splits {
[INDENT=2][FONT=courier new]abi {[/INDENT]
[INDENT=3][FONT=courier new]enable true
reset()
include “armeabi-v7a”, “arm64-v8a”
universalApk true[/INDENT]
[INDENT=3][FONT=courier new]}[/INDENT]
[INDENT=2][FONT=courier new]}[/INDENT]
[FONT=courier new]//SOMETHING SOMETHING WRITES HERE
}
https://forums.unrealengine.com/core/image/gif;base64
12- Put ndk to your other gradle. (You will see all gradles in the left tree view of android studio.). Go buildAdditions.gradle and put below:
[FONT=courier new]ndk { [FONT=courier new]abiFilters “arm64-v8a”, “armeabi-v7a”
[FONT=courier new]}
13- Build your project in android studio to check if project throwing any error.
14- Now Go to Build/Generate Signed Bundle/APK
15- Search for your key you created in ue4 for app. Also fill in your password info
16- Choose export location if you don’t the file should be located Project/Intermediate/Android/APK/Gradle/App/Release
Now you are good to go. Upload your application and have wide solution. I hope this helps.
References :
https://developer.android.com/studio…ure-apk-splits
https://developer.android.com/studio…-native-builds
https://www.youtube.com/watch?v=lmjhoqnbbvc&feature=youtu.be