x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

I have been stuck in fixing a bug when packaging my Unreal Engine project for an Android ETC1. The error log says:

Hey guys,

When I try to package my project for Android ETC1, I get following errors. I have already installed VS2015 and CodeWork for 1R6U1.

 UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: ====11/26/2017 2:30:23 PM====PERFORMING FINAL APK PACKAGE OPERATION===============================================
 UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: BUILD FAILED UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:597: The following error occurred while executing this line: UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:644: java.lang.ArrayIndexOutOfBoundsException: 1 UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at com.android.ant.DependencyGraph.parseDependencyFile(DependencyGraph.java:180) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at com.android.ant.DependencyGraph.(DependencyGraph.java:54) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at com.android.ant.SingleDependencyTask.initDependencies(SingleDependencyTask.java:87) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at com.android.ant.ManifestMergerTask.execute(ManifestMergerTask.java:112) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at java.lang.reflect.Method.invoke(Method.java:498) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Task.perform(Task.java:348) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Target.execute(Target.java:390) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Target.performTasks(Target.java:411) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Project.executeTargets(Project.java:1251) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at java.lang.reflect.Method.invoke(Method.java:498) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Task.perform(Task.java:348) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at com.android.ant.IfElseTask.execute(IfElseTask.java:120) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at java.lang.reflect.Method.invoke(Method.java:498) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Task.perform(Task.java:348) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Target.execute(Target.java:390) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Target.performTasks(Target.java:411) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Project.executeTarget(Project.java:1368) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Project.executeTargets(Project.java:1251) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Main.runBuild(Main.java:809) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.Main.startAnt(Main.java:217) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: Total time: 54 seconds UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: ERROR: System.IO.FileNotFoundException: Could not find file 'E:\Thesis Indoor Mapping\unreal\VRFPS\Intermediate/Android/APK/bin/VRFPS-debug.apk'. UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: File name: 'E:\Thesis Indoor Mapping\unreal\VRFPS\Intermediate/Android/APK/bin/VRFPS-debug.apk' UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Bool ean bDisallowExternalFilesDir) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildDeployTarget InTarget) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at UnrealBuildTool.AndroidPlatform.Deploy(UEBuildDeployTarget Target) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile) UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: Total build time: 298.23 seconds (NoActionsToExecute executor: 0.02 seconds) UATHelper: Packaging (Android (ETC1)): CommandUtils.Run: Run: Took 299.1951221s to run UnrealBuildTool.exe, ExitCode=5 UATHelper: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe VRFPS Android Development -Project="E:\Thesis Indoor Mapping\unreal\VRFPS\VRFPS.uproject" "E:\Thesi s Indoor Mapping\unreal\VRFPS\VRFPS.uproject" -NoUBTMakefiles -remoteini="E:\Thesis Indoor Mapping\unreal\VRFPS" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.11.26-14.26.20.txt' UATHelper: Packaging (Android (ETC1)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (ETC1)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars)
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Android (ETC1)): 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)
 UATHelper: Packaging (Android (ETC1)):    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)
 UATHelper: Packaging (Android (ETC1)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
 UATHelper: Packaging (Android (ETC1)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
 UATHelper: Packaging (Android (ETC1)):    at BuildCookRun.ExecuteBuild()
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.BuildCommand.Execute()
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.Automation.Process(String[] Arguments)
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.Program.MainProc(Object Param)
 UATHelper: Packaging (Android (ETC1)):    at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param) UATHelper: Packaging (Android (ETC1)): at AutomationTool.Program.Main() UATHelper: Packaging (Android (ETC1)): Program.Main: AutomationTool exiting with ExitCode=5 (5) UATHelper: Packaging (Android (ETC1)): BUILD FAILED PackagingResults:Error: Error Unknown Error
 

Android Settings

Android SDK

Thanks a lot for the help in advance!

Product Version: UE 4.16
Tags:
1.png (187.7 kB)
2.png (123.7 kB)
more ▼

asked Nov 27 '17 at 02:08 PM in Packaging & Deployment

avatar image

OmidRad
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question