When packaging project for Android using the command:
Platform> Android > Package Project
The engine generates App Bundle (.aab) file along with few other .apk files (universal apk) and some windows batch files (*.bat) to install and test on physical device. The files generated for me are as follows:
- AFS_MyProject-Android-Shipping-arm64.apk
- MyProject-Android-Shipping.apk
- MyProject-Android-Shipping.target
- MyProject-Android-Shipping_universal.apk
- MyProject-Android-Shipping-arm64.so
- Install_MyProject-Android-Shipping_universal.bat
The batch file above (namely Install_MyProject-Android-Shipping_universal.bat ) has a slight bug which prevents the universal .apk from getting installed on the device. At line #15 it is trying to install the file AFS_MyProject-Android-Shipping_universal.apk, which if you see from the list of files above does not exist.
If i change this to instead use the first file in the list above to AFS_MyProject-Android-Shipping-arm64.apk and re-run the batch file then the apk get’s installed on the device and works fine.
However, everytime I create a new package, I have to re-edit the file.
I am positing the problem and the solution here for if anyone else stumbles upon the same issue or maybe Epic can fix the problem.
Note that this only happens when AAB app bundle generation is checked from:
Project Settings>Android> App Bundles> Generate Bundle (AAB)