RunUAT.bat error on Unreal 4.10

I’m trying to package an Android .apk in order to put it on the Android Market. I’ve marked it as follows in order to get a distribution application:

  1. Unser Project settings → Project → Packaging, I checked the “For distribution”
  2. Under Project settings → Platforms → Android, I checked the “Package game data inside .apk”
  3. Under Project settings → Platforms → Android, I filled the “Distribution Signing” with a custom keystore and keyfile that I self created.

But I’m receiving the following error:

MainFrameActions: Packaging (Android (ATC)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ATC)): Program.Main: ERROR: Exception in Ionic.Zip.Reduced: Could not read C:\Users\Sonia\ \GreenDog\Repository\JellyBug\Saved\StagedBuilds\Android_ATC.obb as a zip file
MainFrameActions: Packaging (Android (ATC)): Stacktrace:    en Ionic.Zip.ZipFile..ctor(String fileName)
MainFrameActions: Packaging (Android (ATC)):    en AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ATC)):    en Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ATC)):    en BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (ATC)):    en BuildCommand.Execute()
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Program.Main()InnerException in mscorlib: Acceso denegado a la ruta de acceso 'C:\Users\Sonia\ \GreenDog\Repository\JellyBug\Saved\StagedBuilds\Android_ATC.obb'.
MainFrameActions: Packaging (Android (ATC)): Stacktrace:    en System.IO.__Error.WinIOError(Int32 err
MainFrameActions: Packaging (Android (ATC)): orCode, String maybeFullPath)
MainFrameActions: Packaging (Android (ATC)):    en System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
MainFrameActions: Packaging (Android (ATC)):    en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
MainFrameActions: Packaging (Android (ATC)):    en Ionic.Zip.ZipFile.get_ReadStream()
MainFrameActions: Packaging (Android (ATC)):    en Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
MainFrameActions: Packaging (Android (ATC)):    en Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter)
MainFrameActions: Packaging (Android (ATC)):    en Ionic.Zip.ZipFile..ctor(String fileName)
MainFrameActions: Packaging (Android (ATC)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ATC)): Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
MainFrameActions: Packaging (Android (ATC)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ATC)): copying UAT log files...
MainFrameActions: Packaging (Android (ATC)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (ATC)): BUILD FAILED

PackagingResults:Error: Error Unknown Error

This error doesn’t happen when I change the second sten and don’t package game data inside .apk. But I don’t know why I’m getting this error…

Any help will be really appreciated!

Attached full console log:
[link text][1]

and UE log:
[link text][2]

UE configuration screenshots:

Sonia,

Could you please provide your full error as a .txt file? Please let us know if the same happens with 4.9 and 4.10 with a different project.

Thank you!

Sure , here you are. Sorry I forgot… I’m gonna copy some screenshots too…

Looking at your , it looks like you may not have your Android SDK set up correctly. Could you verify that you have your SDK set up similarly to this?

61693-androidsdk.jpg

Hey Sonia,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

Hello .
I solved the problem yesterday late, so I had no time to write you back as I was testing the solution. After so many posts and search, I found that my keystore needed the .keystore extension (that I don’t understand, as my .keyfile doesn’t), and that, due to some bug or something made in a wrong way, I had to clean the destination folder of the apk.
After that, I could finally deliver a signed apk :slight_smile:

could you please say how did you fix it again and what file exactly did you delete ?

Actually that was two main problems:

  1. I wrote in the wrong way the keystore name. You have to put the name + .keystore at the end.
  2. I had to erase the Android folder under ProjectName>Build.
    In my case that was enough…