Unable to Package for Android with Automation Tool Exit Code : 5

LogSavePackage: Save=135.39ms
LogSavePackage: Moving ‘C:/Users/METARVRSE-R3/Documents/Unreal Projects/Android360/Saved/UEDPCMainMenuC87E54D04A4887596A3512B7603C8949.tmp’ to ‘C:/Users/METARVRSE-R3/Documents/Unreal Projects/Android360/Saved/Autosaves/Game/ThirdPersonBP/Maps/UEDPCMainMenu.umap’
LogSavePackage:Display: Finished SavePackage C:/Users/METARVRSE-R3/Documents/Unreal Projects/Android360/Saved/Autosaves/Game/ThirdPersonBP/Maps/UEDPCMainMenu.umap
LogEditorTransaction: Undo Spawn Play From Here Start
UATHelper: Packaging (Android (ASTC)): Running AutomationTool…
UATHelper: Packaging (Android (ASTC)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“C:/Users/METARVRSE-R3/Documents/Unreal Projects/Android360/Android360.uproject” BuildCookRun -nocompileeditor -nop4 -project=“C:/Users/METARVRSE-R3/Documents/Unreal Projects/Android360/
UATHelper: Packaging (Android (ASTC)): Android360.uproject” -cook -stage -archive -archivedirectory=C:/Users/METARVRSE-R3/Desktop -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ASTC -build -CrashReporter -utf8output -compile
UATHelper: Packaging (Android (ASTC)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Android (ASTC)): ScriptCompiler.FindAndCompileScriptModules: Compiling scripts.
UATHelper: Packaging (Android (ASTC)): MSBuild: DotNETUtilities → E:\UnrealEngine-release\Engine\Binaries\DotNET\DotNETUtilities.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: UnrealBuildTool → E:\UnrealEngine-release\Engine\Binaries\DotNET\UnrealBuildTool.exe
UATHelper: Packaging (Android (ASTC)): MSBuild: AutomationUtils.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationUtils.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: AllDesktop.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\AllDesktop\AllDesktop.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: GUBP.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\GUBP.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: Localization.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\Localization.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: OneSkyLocalization.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\OneSkyLocalization.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: AutomationScripts.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\AutomationScripts.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: Android.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\Android\Android.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: BuildGraph.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\BuildGraph.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: HTML5.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\HTML5\HTML5.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: IOS.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\IOS\IOS.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: Linux.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\Linux\Linux.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: Mac.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\Mac\Mac.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: TVOS.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\TVOS\TVOS.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: Win.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\Win.Automation.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: XLocLocalization.Automation → E:\UnrealEngine-release\Engine\Binaries\DotNET\AutomationScripts\XLocLocalization.Automation.dll
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 5.5009807s to run MSBuild.exe, ExitCode=0
UATHelper: Packaging (Android (ASTC)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\METARVRSE-R3\Documents\Unreal Projects\Android360\Android360.uproject
UATHelper: Packaging (Android (ASTC)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe E:/UnrealEngine-release/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:minimal /nologo /target:Rebuild /property:Configuration=Development /property:Platform=AnyCPU
UATHelper: Packaging (Android (ASTC)): MSBuild: DotNETUtilities → E:\UnrealEngine-release\Engine\Binaries\DotNET\DotNETUtilities.dll
UATHelper: Packaging (Android (ASTC)): MSBuild: UnrealBuildTool → E:\UnrealEngine-release\Engine\Binaries\DotNET\UnrealBuildTool.exe
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 2.5088177s to run MSBuild.exe, ExitCode=0
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: E:\UnrealEngine-release\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -remoteini=“C:\Users\METARVRSE-R3\Documents\Unreal Projects\Android360” -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: building WITHOUT VULKAN define
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 3.2594133s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: E:\UnrealEngine-release\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -remoteini=“C:\Users\METARVRSE-R3\Documents\Unreal Projects\Android360” -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Creating makefile for UE4Game (UnrealBuildTool.exe is newer)
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: building WITHOUT VULKAN define
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Compiling Native code with NDK API ‘android-24’
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Target is up to date
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Receipt Filename: E:\UnrealEngine-release\Engine\Binaries\Android\UE4Game.target
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AndroidPlugin: Plugins\Runtime\GearVR\Source\GearVR\GearVR_APL.xml
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: UPL: …\Plugins/Runtime/GearVR/Source/GearVR/GearVR_APL.xml
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ====31-01-2017 11:08:23====PREPARING TO MAKE APK=================================================================
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Writing to shim file E:\UnrealEngine-release\Engine\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Shim data file up to date so not writing. ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Writing to template target file E:\UnrealEngine-release\Engine\Build\Android\src\com\YourCompany\UE4Game\AlarmReceiver.java ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Writing to template target file E:\UnrealEngine-release\Engine\Build\Android\src\com\YourCompany\UE4Game\DownloaderActivity.java ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Writing to template target file E:\UnrealEngine-release\Engine\Build\Android\src\com\YourCompany\UE4Game\OBBDownloaderService.java ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Cleaning up files based on template dir E:\UnrealEngine-release\Engine\Build\Android\src\com\YourCompany\UE4Game
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Building Java with SDK API level ‘android-25’
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: E:\UnrealEngine-release\Engine\Binaries\Android\UE4Game-armv7-es2.apk is out of date due to newer input file E:\UnrealEngine-release\Engine\Binaries\Android\UE4Game-armv7-es2.so
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: UPL Init: armeabi-v7a
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: GearVR init
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Oculus Signature Files (osig) will be removed from APK
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: On build machine.
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Fixing minSdkVersion; NDK level above 19 requires minSdkVersion of 21 (arch=armv7)
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: bPackageDataInsideApk = False
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Added repository: C:\NVPACK\android-sdk-windows\extras\google\m2repository
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Added repository: C:\NVPACK\android-sdk-windows\extras\android\m2repository
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Added repository: …\Engine\Source\ThirdParty\Android\extras\google\m2repository
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-ads, 9.2.0
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AAR: Unable to find package com.google.android.gms/play-services-ads!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-auth, 9.2.0
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AAR: Unable to find package com.google.android.gms/play-services-auth!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-games, 9.2.0
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AAR: Unable to find package com.google.android.gms/play-services-games!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AAR: Unable to find package com.google.android.gms/play-services-nearby!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-plus, 9.2.0
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: AAR: Unable to find package com.google.android.gms/play-services-plus!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Warning: Splash screen source image E:\UnrealEngine-release\Engine\Intermediate/Android/APK/res/drawable/splashscreen_landscape.png not available, splash screen will not function properly!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Warning: Downloader screen source image E:\UnrealEngine-release\Engine\Intermediate/Android/APK/res/drawable/downloadimageh.png not available, downloader screen will not function properly!
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ====31-01-2017 11:08:24====PREPARING NATIVE CODE=================================================================
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: On build machine.
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Fixing minSdkVersion; NDK level above 19 requires minSdkVersion of 21 (arch=armv7)
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ====31-01-2017 11:08:24====UPDATING BUILD CONFIGURATION FILES====================================================
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool:
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ==== Writing new GameActivity.java file to E:\UnrealEngine-release\Engine\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Preparing native code for debugging…
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: UnrealBuildTool Exception: ERROR: C:/NVPACK/android-ndk-r12b-windows-x86_64/android-ndk-r12b/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1
UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 10.393608s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (ASTC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\UnrealEngine-release\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -remoteini=“C:\Us
UATHelper: Packaging (Android (ASTC)): ers\METARVRSE-R3\Documents\Unreal Projects\Android360” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2017.01.31-11.08.15.txt’
UATHelper: Packaging (Android (ASTC)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:line 883 UATHelper: Packaging (Android (ASTC)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\Pr
ocessUtils.cs:line 836
UATHelper: Packaging (Android (ASTC)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 51 UATHelper: Packaging (Android (ASTC)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 89
UATHelper: Packaging (Android (ASTC)): at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) in E :\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 362 UATHelper: Packaging (Android (ASTC)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictiona
ry2 InTargetToManifest) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 1460 UATHelper: Packaging (Android (ASTC)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) in e:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 172 UATHelper: Packaging (Android (ASTC)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in e:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 211 UATHelper: Packaging (Android (ASTC)): at AutomationTool.BuildCommand.Execute() in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 27 UATHelper: Packaging (Android (ASTC)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 547 UATHelper: Packaging (Android (ASTC)): at AutomationTool.Automation.Process(String[] Arguments) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 517 UATHelper: Packaging (Android (ASTC)): at AutomationTool.Program.MainProc(Object Param) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\Program.cs:line 135 UATHelper: Packaging (Android (ASTC)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param) in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Program.Main() in E:\UnrealEngine-release\Engine\Source\Programs\AutomationTool\Program.cs:line 59
UATHelper: Packaging (Android (ASTC)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

I installed Codeworks for android and SDK,NDK,ANT plugins. And My sdk version is 19. I try to convert project for Android ASTC.

Armroyce,

Could you please upload a screenshot of your Android SDK? Here is an example:

Thanks!

You need to press the ‘configure now’ button for sure, and for the Google Play Services if you’re using that as well. Let me see your Android SDK too.

Thanks!

Hey Armroyce,

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!