Looking in wrong directory for MyModule_APL.xml

emphasized textThis is something that works in 4.17 but isn’t allowing me to package in 4.19.

I have some java code encased in a mymodeul_apl.xml style plugin include.

This is referenced as a runtime dependency:

 if (Target.Platform == UnrealTargetPlatform.Android)

In 4.19 this failed to package with the following error:

UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1)): WARNING: SafeCopyFile Exception was Exception in mscorlib: Could not find file 'D:\Projects\MM419\Engine\Source\AndroidImageHandler_APL.xml'.

MM419 is my UE4 engine fork.

The XML should be looked for in:


BAD answer. It DID “fix” the packaging problem but I still couldn’t load.

string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
AdditionalPropertiesForReceipt.Add(“AndroidPlugin”, Path.Combine(PluginPath, “AndroidImageHandler_APL.xml”));

Scoping the dependency path got past that error:


However I’m still failing to finish a successful Android build on 4.19. Trying to find the next error…