Android packaging errors in unreal. Cant find a fix that works.

Hey there.

So Ive spent the last 3 full days hacking at packaging for android to test some things…

But boooooy howdy, what a hell of a river to cross. Why is this so difficult to get working.

I can’t even list the amount of fixes I’ve done.

I’m down to this error “SDK for android is not installed properly”

And these errors.

LogClass: Warning: Property ArrayProperty UPresetSettingsProperties::ActivePresetCollectionsPaths defines MetaData key “MetaClass” which contains short type name “InteractiveToolsPresetCollectionAsset”. Suggested pathname: “/Script/PresetAsset.InteractiveToolsPresetCollectionAsset”. Module:ModelingToolsEditorMode File:Public/ModelingToolsEditorModeToolkit.h
LogAutomationTest: Warning: LogClass: Property ArrayProperty UPresetSettingsProperties::ActivePresetCollectionsPaths defines MetaData key “MetaClass” which contains short type name “InteractiveToolsPresetCollectionAsset”. Suggested pathname: “/Script/PresetAsset.InteractiveToolsPresetCollectionAsset”. Module:ModelingToolsEditorMode File:Public/ModelingToolsEditorModeToolkit.h

PackagingResults: Error: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

PackagingResults: Error: Exception org.codehaus.groovy.GroovyBugError [in thread “Daemon worker”]

PackagingResults: Error: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread “Daemon worker”]

PackagingResults: Error: cmd.exe failed with args /c “D:\Unreal Projects\SpinnerCollection 5.2\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug

PackagingResults: Error: Unknown Error

Please someone just save me at this stage or start loading a shotgun. I need to be put out either way.

I’ve been through unreals documentation. (Adjusting the .bat)
I’ve been through countless tutorials.
I’ve been through Android studio.
Visual installer.
Windows SDKs.

I’ll try and list more as I Remember

It’s definitely me being stupid. I just can’t find where I’m being stupid.

I think part of the problem is half of the fixes are so out of date at this stage.

Anyway, Thank you to anyone that can help.

So for anyone struggling atm.

I found 2 links that so far have worked wonders.

This tutorial is the best I’ve found so far.

This if your phone isn’t being found in unreal (Or in cmd, when your looking for “adb devices”)

Mine was to make sure it wasnt “Charge only”, I swapped it to PTP.

DO NOT follow the unreal documentation. It feels like a big stinky trap.

Finally, I had a red error show that my ndk was too high for my phone.
And my sdk was to low saying something like #29 was installed. Need #33

This was fixed by going to the sdk section in project settings.

And making sure in the ndk api level was set to android-(Number you have)

Not just the number. So mine was android-21.

I have officially got it working. what an absolute ***************.

Hopefully this helps someone

1 Like

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