AutomationTool was unable to run successfully. Exited with code: 1 - gradlew\" :app:bundleRelease"

I’m having this problem with Android packaging:

UATHelper: Packaging (Android (ASTC)): ERROR: /bin/sh failed with args -c “”/Users/SRH/Documents/Unreal Projects/Packed 5.0/Intermediate/Android/gradle/gradlew" :app:bundleRelease"

UATHelper: Packaging (Android (ASTC)): RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 1

PackagingResults: Error: Unknown Error

These are my SDK settings:

I’m using a Macbook Pro, macOS Monterey 12.4

I tried different methods but none worked in my case…

I hope someone can help me :sweat_smile:

Thank you!

The problem was related to the keystore, I was compiling the part Distribution Signing wrong.

I had followed the official guide on how to create a key, this one:

…but, instead of writing as alias “MyKey” as shown in the code, I put one of my own; this was because I had followed the guide without understanding what I was doing.

The code is:

keytool -genkey -v -keystore ExampleKey.keystore -alias MyKey -keyalg RSA -keysize 2048 -validity 10000

ExampleKey.keystore is the file key name, it must be written as KeyStore in Distribution Signing section
MyKey is the alias name, it must be written as Key Alias in Distribution Signing section

Both names can be changed at will as long as they fit in the quoted code, this is the point.

I know it may seem silly to explain something that is already explained in both the guide and the section Distribution Signing but I think it can be of help to other beginners like me.

I took months to understand it, I hope others take less :rofl: