Cannot package project with Unreal 5.5.4

Hello all,
I am really desperate. I successfully created the first program on June 30. Everything went smoothly. The next day, I did everything exactly the same and then this error message appeared. I have no idea what it means.

BUILD FAILED in 17s
UATHelper: Packaging (Android (ASTC)): cmd.exe failed with args /c “C:\Users\JUlmer\OneDrive - Erbe Elektromedizin\Dokumente\Unreal Projects\APP_Test\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\JUlmer\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.5\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 1m 0s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
LogStreaming: Display: FlushAsyncLoading(382): 1 QueuedPackages, 0 AsyncPackages
PackagingResults: Error: Unknown Error
LogDerivedDataCache: C:/Users/JUlmer/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:00.000 and deleted 0 files with total size 0 MiB and 0 empty folders. Scanned 0 files in 1 folders with total size 0 MiB.

I deleted the files in the destination folder, but that didn’t help.

Regards,

Jochen

APP_Test.log (360.3 KB)

Hello there @JUlmer!

Since the build worked with no issues before, then it started failing the next day, the most likely cause here is a change in your environment. So the first step is to review any auto-updates that took place in your system (OS, drivers, engine), or if anything was added to your project during that time, and revert/remove these changes.

The log shows that some of your elements are stored in One Drive (C:\Users\JUlmer\OneDrive - Erbe Elektromedizin...), so I would strongly suggest moving your project to another location not tied to cloud saving, as changes beyond your control could occur here.

Moving on to particular errors, from your extract, and your full log, the most relevant entries go as follows:

“BUILD FAILED in 17s UATHelper: Packaging (Android (ASTC)): cmd.exe failed with args /c “C:\Users\JUlmer\OneDrive - Erbe Elektromedizin\Dokumente\Unreal Projects\APP_Test\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug”

cmd.exe failed with args /c “…\rungradle.bat” :app:assembleDebug

PackagingResults: Error: Unknown Error

These errors are all tied to the Android Gradle process failing. Since the build worked before, we can assume that your versions of the components, the SDK, JDK, NDK and Build tools are in the correct version, although it’s worth double-checking them.

The only mutable part in all these, are the temporary build files generated in the packing process. So, I would suggest locating the following folders in your project directory, making a backup just in case, then deleting their contents. After that, restart UE and try to pack again:

  • .gradle\caches
  • Intermediate\Android
  • Binaries
  • Build
  • Saved

If the issue persists, then we will need to dive deeper. Your log mentions a full exception trace that was saved at C:\Users\JUlmer\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.5\Log.txt, please share that file here, as it should contain more specific errors.