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"

ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args

Hi,

i got a build error for android its an project with nothing custom inside

LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: LogPlayLevel: Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "C:/MyNVPACK/apache-ant-1.8.2/bin/ant.bat" -quiet debug LogPlayLevel: Stacktrace: bij UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute) LogPlayLevel: bij UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk) LogPlayLevel: bij UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy) LogPlayLevel: bij AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC) LogPlayLevel: bij Project.Deploy(ProjectParams Params) LogPlayLevel: bij BuildCookRun.DoBuildCookRun(ProjectParams Params) LogPlayLevel: bij BuildCommand.Execute() LogPlayLevel: bij AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) LogPlayLevel: bij AutomationTool.Automation.Process(String[] CommandLine) LogPlayLevel: bij AutomationTool.Program.MainProc(Object Param) LogPlayLevel: bij AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param) LogPlayLevel: bij AutomationTool.Program.Main() LogPlayLevel: Program.Main: ERROR: ERROR: cmd.exe failed with args /c "C:/MyNVPACK/apache-ant-1.8.2/bin/ant.bat" -quiet debug LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes. LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 LogPlayLevel: Domain_ProcessExit LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes. LogPlayLevel: copying UAT log files... LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully. LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 42.280850 LogPlayLevel: BUILD FAILED

Product Version: UE 4.7
Tags:
more ▼

asked May 25 '15 at 10:29 PM in Packaging & Deployment

avatar image

quintendc
185 43 58 82

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

1 answer: sort voted first
  1. Please ensure you have TADP set up, along with your Android SDK in project settings and your environment variables. Restart your computer.

  2. Make sure there is nothing unusual (additional spaces for example about your Android package name or TADP setup.

  3. Make sure keystore is set up correctly, if you're packaging for distribution and receiving this error. Here is some additional keystore instruction.

  4. Double check for proguard errors.

  5. Last resort, delete current build of TADP and upgrade to most recent. Make sure to have SDK 19 and NDK checked when installing.

Good luck.

more ▼

answered Jun 08 '15 at 09:33 PM

avatar image Alihaider99 Apr 08 '19 at 10:24 PM

i tried everything that you mentioned in your Answer but still getting this Error

ERROR: cmd.exe failed with args /c "C:\Users\Is\Documents\Unreal Projects\test\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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