Gameproperly packaged when building and deploying android app using RunUAT

Hi,

We are trying to build, deploy and run our Android game using RunUAT.bat.

The game is showing the error in the attached snapshot when is launched by RunUAT.bat on the Android Device.

Is there any extra argument required or configuration to fix this issue?

Best Regards,

Xavi

Steps to Reproduce
“C:\UE_5.5\Engine\Build\BatchFiles\RunUAT.bat” BuildCookRun -project=%cd%“\SDKSampleUE\SDKSampleUE.uproject” -platform=Android -clientconfig=Shipping -serverconfig=Shipping -target=SDKSampleUE -build -cook -stage -deploy -run

Hi Xavier,

Can you confirm the APk packaging settings? Data in .APK and OBB settings?

Thanks,

Stephane

Hi Stephane,

Here you have the android part of our Engine.ini:

Thanks,

Xavi

Hi Xavier.

Please try the following:

C:\UE_5.5\Engine\Build\BatchFiles\RunUAT.bat BuildCookRun -project=%cd%"\SDKSampleUE\SDKSampleUE.uproject" -platform=Android -clientconfig=Shipping -target=SDKSampleUE -build -cook -stage -package
%cd%"\SDKSampleUE\Binaries\Android\Install_SDKSampleUE-Android-Shipping-arm64.bat
set /p PACKAGENAME=< %cd%"\SDKSampleUE\Binaries\Android\packageinfo.txt 
adb shell am start -n %PACKAGENAME%/com.epicgames.unreal.SplashActivity

Best regards.

Hi Stephane,

The next command is failing:

SDKSampleUE\Binaries\Android\Install_SDKSampleUE-Android-Shipping-arm64.bat

Error:

Performing Streamed Install
adb.exe: failed to stat SDKSampleUE-Android-Shipping-arm64.apk: No such file or directory
 
There was an error installing the game or the obb file. Look above for more info.
 
Things to try:
Check that the device (and only the device) is listed with "ADB$ devices" from a command prompt.
Make sure all Developer options look normal on the device
Check that the device has an SD card.

adb devices found the device and also the editor project launcher:

adb devices
List of devices attached
24291FDF600511  device

What could be the issue here?

Thanks,

Xavi

Hi Xavier,

It appears that on Windows, the install bat doesn’t change the working directory like it does on Linux and Mac. As such, the install bat would need to be run for its parent folder as a working directory.

If you have command extensions enabled, try the following:

pushd %cd%"\SDKSampleUE\Binaries\Android
Install_SDKSampleUE-Android-Shipping-arm64.bat
popd

Best regards.

Hi Stéphane,

I was able to launch the game via command line with your last code proposal.

Thanks for the quick response.

Best Regards,

Xavi

Glad that worked for you. Thanks for the update Xavier.