Ar template error 4.27.1

Hello,
I am trying to follow the AR presentation that was done a coupe weeks ago and when I try to deploy straight to my phone or just full deploy it gives me the error below.
I have created other simple Android apps (Arch Viz) but using older versions of Unreal also with Codeworks.
I am on a new laptop, just installed Android Studio and Unreal’s Android SDK as showed on Unreal’s Docs.
I am only using the default AR template, I haven’t introduced any extra code or objects. My Phone is a Pixel 4a

UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c "X:\Projects\PP Newall ES\3D\U4ar\U4AR\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug UATHelper: Packaging (Android (ASTC)): (see C:\Users\fpenaloza\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace) PackagingResults: Error: cmd.exe failed with args /c "X:\Projects\PP Newall ES\3D\U4ar\U4AR\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown) UATHelper: Packaging (Android (ASTC)): BUILD FAILED PackagingResults: Error: Unknown

I had an error on a new install with 4.27.1, and my fix was to reinstall the SDK.

Thank for the input, I was thinking of something similar,d so after a lot of research I found this Youtubre that shows the whole process to prep your machine for Android deployment.
What is missing from Unreal Docs is the Java that has to be installed and some other prep steps.

hope this helps someone else.
Cheers

1 Like

Interesting, I most likely had Java on my computer.

Cheers,
Daryl