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)
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\\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
I know this is a later version, but wanted to share since these posts appeared in my search for a solution: I had this problem with 4.25 for a week, trying on two laptops with zero success. Found this video , titled: UNREAL ENGINE 4.25.1 PACKAGING FOR ANDROID TUTORIAL UPDATED! : UNREAL ENGINE 4.25.1 PACKAGING FOR ANDROID TUTORIAL UPDATED! - YouTube
I removed all of the files for android studio and codeworks (which took some work for some reason) and started with this process from scratch, also installing JDK 15 fresh.
It worked. The “cmd.exe failed with args /c” failure is gone. I hope this works for you. I spent a week looking for the answer, and this 20 minute step-by-step setup solved the problem.
side note: my desktop system has not had this issue at all, and is still set up differently, for some reason the laptops would not work unless this exact setup is in place.
I had this problem, for me I had to increase the heap size.
Go to: Unreal[PROJECTNAME]\Intermediate\Android\armv7\gradle
Open: gradle.properties with notepad or other textwriter
Change: org.gradle.jvmargs=-XX:MaxHeapSize=4096m -Xmx9216m To somthing like XX:MaxHeapSize=8096
Also got the “ERROR: cmd.exe failed with args /c” with version 4.26.1 and I fixed it by simply deleting the content of the ProjectName/Intermediate folder. xD
jdk-8u291-windows-x64 ( jre1.8.0_291 ) from Java SE Development Kit 8 - Downloads
+
android-ndk-r21e from NDK Revision History | Android NDK | Android Developers