# Creating Mobile game and launching it on my device

**URL:** <https://forums.unrealengine.com/t/creating-mobile-game-and-launching-it-on-my-device/578283>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4, question\
**Created:** [June 9, 2022, 11:52pm UTC](https://forums.unrealengine.com/t/creating-mobile-game-and-launching-it-on-my-device/578283 "2022-06-09T23:52:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_92da05551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_92da05551](https://forums.unrealengine.com/u/anonymous_user_92da05551)\
**Post date:** [June 9, 2022, 11:52pm UTC](https://forums.unrealengine.com/t/creating-mobile-game-and-launching-it-on-my-device/578283/1 "2022-06-09T23:52:23Z")

</div>

Hello guys!  
I need help in launching app on my device and packaging.  
Here it is

> Task :app:ue4BuildUniversalAPKSDebug FAILED  
> [BT:0.13.0] Error: Error while loading private key and certificates from the keystore.  
> com.android.tools.build.bundletool.model.exceptions.CommandExecutionException: Error while loading private key and certificates from the keystore.  
> at com.android.tools.build.bundletool.model.exceptions.CommandExecutionException$Builder.build(CommandExecutionException.java:81)  
> at com.android.tools.build.bundletool.model.SigningConfiguration.extractFromKeystore(SigningConfiguration.java:150)  
> at com.android.tools.build.bundletool.commands.DebugKeystoreUtils.lambda$getDebugSigningConfiguration$1(DebugKeystoreUtils.java:57)  
> at java.util.Optional.map(Optional.java:215)  
> at com.android.tools.build.bundletool.commands.DebugKeystoreUtils.getDebugSigningConfiguration(DebugKeystoreUtils.java:55)  
> at com.android.tools.build.bundletool.commands.BuildApksCommand.fromFlags(BuildApksCommand.java:483)  
> at com.android.tools.build.bundletool.commands.BuildApksCommand.fromFlags(BuildApksCommand.java:433)  
> at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:74)  
> at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:46)  
> Caused by: java.io.IOException: Invalid keystore format  
> at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:658)  
> at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)  
> at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)  
> at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)  
> at java.security.KeyStore.load(KeyStore.java:1445)  
> at com.android.tools.build.bundletool.model.SigningConfiguration.extractFromKeystore(SigningConfiguration.java:113)  
> … 7 more

> Task :app:ue4ExtractUniversalAPKDebug FAILED  
> ERROR: Unable to find AAB: build/outputs/bundle/debug/universal.apks

FAILURE: Build completed with 2 failures.

## 1: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:ue4BuildUniversalAPKSDebug’.

> Process ‘command ‘C:\Program Files\Java\jdk1.8.0\_77\bin\java.exe’’ finished with non-zero exit value 1

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
==============================================================================

## 2: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:ue4ExtractUniversalAPKDebug’.

> Process ‘command ‘C:\Program Files\Java\jdk1.8.0\_77\bin\java.exe’’ finished with non-zero exit value -1

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
==============================================================================

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 5m 17s  
63 actionable tasks: 63 executed  
ERROR: cmd.exe failed with args /c “D:\Unreal\_Progects\Mobilegametest\Intermediate\Android\gradle\rungradle.bat” :app:bundleDebug  
Took 356,1933633s to run UnrealBuildTool.exe, ExitCode=6  
UnrealBuildTool failed. See log for more details. (C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE\_4.26\UBT-Mobilegametest-Android-Development.txt)  
AutomationTool exiting with ExitCode=6 (6)  
BUILD FAILED

ERROR: cmd.exe failed with args /c “D:\Unreal\_Progects\Mobilegametest\Intermediate\Android\gradle\rungradle.bat” :app:bundleDebug  
This error makes me angry.

I spent so much time solving this problems(created keystores,reinstalling engine,sdk,ndk,jdk).However nothing changed.I’m begging for your help.  
Thanks for attention.
