Android Packaging fails with custom Multicast Delegates

Our company is writing a plugin. This plugin is being developed in an empty UE4 project, and we are building for Android (usually Multi).

The project (contaning our plugin) packages fine for Windows. But when we package for Android, the packaging fails showing the error below (see packageerror.jpg). The error appears for all Multicast Delegates defined in our plugin.

346232-packageerror.png

We think we’ve correctly configured UE4 for Android builds because we have multiple other blueprint-only projects that package and distribute without error to our Android devices.

AndroidRuntimeSettings has been added as both Public and Private dependency modules in the plugin’s .Build.cs, and the .plugin has Android as a TargetPlatform.

Android and AndroidSDK are correctly configured in the editor Project Settings, as confirmed by building other non-plugin Android projects.

So the error seems to reside entirely within our definitions of Multicast Delegates in the plugin.

Can anyone shed light on what the problem could be? Thank you.

Somehow I messed up adding the error image. Apologies for that.

Solved my own issue: AndroidRuntimeSettings.h was being included after the .generated.h file, thus breaking UBT. I am idiot.