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: cmd.exe failed with args

Hi, i got a build error for android

UATHelper: Packaging (Android (ATC)): ERROR: cmd.exe failed with args /c "D:\unrealtest\m1\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug

UATHelper: Packaging (Android (ATC)): (see C:\Users\ABRA\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.21\Log.txt for full exception trace)

UATHelper: Packaging (Android (ATC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)

UATHelper: Packaging (Android (ATC)): BUILD FAILED PackagingResults: Error: cmd.exe failed with args /c "D:\unrealtest\m1\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug PackagingResults: Error: Unknown Error

Product Version: UE 4.21
Tags:
more ▼

asked Jan 20 '19 at 11:38 AM in Using UE4

avatar image

ellasu
6 1 1 2

avatar image TJ1999 Jan 30 '19 at 05:33 PM

I'm having the same problem. Just updated UE to 4.21 and reinstalled the NVPACK to Codeworks 1R7 as given in the UE Engine Folder... If you take a look at some lines above, it says (at least for me):

 UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
 UATHelper: Packaging (Android (ASTC)): * What went wrong:
 UATHelper: Packaging (Android (ASTC)): A problem occurred configuring project ':app'.
 UATHelper: Packaging (Android (ASTC)): > You have not accepted the license agreements of the following SDK components:
 UATHelper: Packaging (Android (ASTC)):   [Android SDK Build-Tools 26.0.2].
 UATHelper: Packaging (Android (ASTC)):   Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
 UATHelper: Packaging (Android (ASTC)):   Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
 UATHelper: Packaging (Android (ASTC)): * Try:
 UATHelper: Packaging (Android (ASTC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
 UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 14s
 UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c "D:\TJProjects\SPF\Special Police Forces 4.20\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleRelease
 UATHelper: Packaging (Android (ASTC)):        (see C:\Users\TJ\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Programme+Epic+Games+UE_4.21\Log.txt for full exception trace)
 UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
 UATHelper: Packaging (Android (ASTC)): BUILD FAILED
 PackagingResults: Error: Unknown Error
avatar image NEON_SWiFT May 20 '19 at 01:33 PM

how do you rebuild your project?

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

5 answers: sort voted first

Hi...

Try unchecking the "Enable Gradle instead of Ant" checkbox in Project Settings.

alt text

disable-gradle.png (73.5 kB)
more ▼

answered Jan 30 '19 at 05:10 PM

avatar image

vladimirgiraldo
11 1 3

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

Found a solution:

As enabling ANT instead of gradle gave me the same problem and all licences were already checked, I found an other solution:

1) Go to NVPACK\android-sdk-windows\tools and run android.bat to execute the SDK-Manager (not the CodeWorks Manager)

2) If anything is checked, deselect everything.

3) Uninstall any installed Android SDK Build-tools

4) Now install the Android SDK Build-tools with latest Revision (at the moment Rev. 28.0.3)

I also updated the Android SDK Tools and Android SDK Platform-tools

alt text

Now rebuild your Project and it should work without any errors! Hope this is helpful

sdk-manager.jpg (167.5 kB)
more ▼

answered Jan 30 '19 at 05:51 PM

avatar image

TJ1999
43 3 4 8

avatar image silverfish1000 Jun 10 '19 at 06:19 PM

Not working for me. I update tools and platforms as well. But the same error. ERROR: ERROR: cmd.exe failed with args

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

Thank you so much for sharing this! it fixed my problem.

more ▼

answered Mar 30 '19 at 10:08 PM

avatar image

Catherine8687
1 1 1

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

You saved me !!!! Thanks !!!!

more ▼

answered May 05 '19 at 12:43 PM

avatar image

Cervelx
65 6 10 16

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

From July 2019 Dont use build tools Rev.29 or later,Rev.28 is OK. 不要使用Rev29或者以后的版本,会出现相同的问题。

more ▼

answered Jul 09 '19 at 09:43 AM

avatar image

Saaaaaaaaaamm
1 1 1

(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