I don’t understand this. I’ve now had it happen 2-3 times within two days. I started doing Shipping Builds for the App Store so I can do my Closed Alpha. I’ve managed to make two builds so far without changing any build settings other than the version number for the app store.
However for no apparent reason when I package a project for Android using the Shipping Setting it works only a fraction of the time. Otherwise the packaging fails at the very end after signing the APK. But without changing anything other than the Version number for my build in the project settings for each release I’ve changed NOTHING about the packaging options.
MainFrameActions: Packaging (Android (ETC1)): [apkbuilder] Current build type is different than previous build: forced apkbuilder run.
MainFrameActions: Packaging (Android (ETC1)): [apkbuilder] Creating FlyingThunderChase-release-unsigned.apk for release...
MainFrameActions: Packaging (Android (ETC1)): -post-package:
MainFrameActions: Packaging (Android (ETC1)): -release-prompt-for-password:
MainFrameActions: Packaging (Android (ETC1)): -release-nosign:
MainFrameActions: Packaging (Android (ETC1)): -release-sign:
MainFrameActions: Packaging (Android (ETC1)): [echo] Signing final apk...
MainFrameActions: Packaging (Android (ETC1)): [zipalign] Running zip align on final apk...
MainFrameActions: Packaging (Android (ETC1)): [zip-align] Unable to open 'E:\UE4 Projects\FlyingThunderChase 4.9\Intermediate\Android\APK\bin\FlyingThunderChase-release.apk' as zip archive
MainFrameActions: Packaging (Android (ETC1)): BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): E:\\android-sdk-windows\tools\ant\build.xml:1139: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (ETC1)): E:\\android-sdk-windows\tools\ant\build.xml:1156: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (ETC1)): E:\\android-sdk-windows\tools\ant\build.xml:335: null returned: 1
MainFrameActions: Packaging (Android (ETC1)): Total time: 39 seconds
MainFrameActions: Packaging (Android (ETC1)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "E://apache-ant-1.8.2/bin/ant.bat" release
MainFrameActions: Packaging (Android (ETC1)): Stacktrace: at UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
MainFrameActions: Packaging (Android (ETC1)): at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: Packaging (Android (ETC1)): at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: Packaging (Android (ETC1)): at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ETC1)): at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ETC1)): at BuildCookRun.Do
MainFrameActions: Packaging (Android (ETC1)): BuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (ETC1)): at BuildCommand.Execute()
MainFrameActions: Packaging (Android (ETC1)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (ETC1)): at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Android (ETC1)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (ETC1)): at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Android (ETC1)): at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (ETC1)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ETC1)): Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
MainFrameActions: Packaging (Android (ETC1)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ETC1)): copying UAT log files...
MainFrameActions: Packaging (Android (ETC1)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (ETC1)): BUILD FAILED
PackagingResults:Error: Error Unknown Error
I’m getting really sick and tired of this because it seems to be no fault of my own that this keeps happening at what seems to be complete random. I really need a solution for this so I can actually keep developing. It’s so bad it stops me from releasing and developing the alpha further. Very urgent issue.