Problem on exporting .apk for android

Hi everyone.
For the company where I work, we create VR training environments and recently decided to use Unreal. I am experiencing a problem when exporting to .apk! I have followed the unreal guide for installing android studio, ndk and jdk and have followed many tutorials to understand the various settings of unreal.

I will leave you with some specifications:

unreal : 5.3.1
android studio : 2022.2.1
sdk : downloaded with android studio
ndk : r25b
java : jre 1.8
The error I get when exporting reports at the end:

UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error

If it is helpful I can send you a txt with the entire output log!

I’ve tried various ways to solve this, but I haven’t come up with anything!
Thank you, I hope you can help me!

How much space do you have on target dir (where you want to export the APK)? Make sure to try on another driver where you have a lots of space.

Check how much memory you have allowed for Gradle. Maybe you should adjust that too.

Entire output log would be much better. You can attach it as TXT file.

You would want to check the filenames and directories for invalid characters. I know that this can prevent sucessful packaging.
Can you provide the complete output log? I can have a look.

Thanks @Logos_Atum & @Bojann for the help!
I will try to follow the tips you gave me and let you know! In the meantime, I attach the txt with the complete output log
Errore Unreal.txt (5.1 KB)

Hey,

this might be it.

In my case I deleted the folders specified. I read this in another post I did not manage to find, but it was on the forums.

Hi guys! Thanks for the help!
I tried to follow your advice:

  • I checked the space in the target dir and it is enough.
  • I checked the memory allocation for gradle and set it to DEFAULT_JVM_OPTS=-Xmx1024M.
  • I found a page on this unreal forum that recommends increasing the page file size from the computer properties. I set the max to 5000m.
  • I checked the file and directory names and everything is ok.

I tried doing a further export with ue5.1.1 and it returns a different output log, I attach the txt.
Error_Unreal_5-1.txt (125.1 KB)

Hopefully to solve it, thanks!

Ah,

“Could not find definition for module ‘GoogleGameSDK’”

Eventually you just have to verify the locations of the necessary prerequisites, that looks a lot like something you can installl via Android Studio. That might be it.

Good morning! Thank you all for your availability and your help! Unfortunately a lot of advice, even online advice on other sites, is too technical for me, who just started with Unreal.
In the past I had managed to export a VR demo with UE 5.1, so I drastically decided to delete everything: Android Studio, Visual Studio, Unreal and all the folders created in the pc. I re-installed everything, following the documentation for the UE 5.1 version, and by doing so I was able to export a working .apk to Meta Quest without any problems!

Now I have to figure out if I can convert the project from UE 5.3 to UE 5.1.

Thank you very much for your helpfulness

Deborah

1 Like

Gladly… oh that will be “nice”. Migrating might work… miiiight.

Godspeed

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.