# Looking in wrong directory for MyModule\_APL.xml

**URL:** <https://forums.unrealengine.com/t/looking-in-wrong-directory-for-mymodule-apl-xml/425582>\
**Category:** Mobile\
**Tags:** Android-Packaging, buildcs, unreal-engine, Android, question\
**Created:** [May 21, 2018, 4:15am UTC](https://forums.unrealengine.com/t/looking-in-wrong-directory-for-mymodule-apl-xml/425582 "2018-05-21T04:15:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [May 21, 2018, 4:15am UTC](https://forums.unrealengine.com/t/looking-in-wrong-directory-for-mymodule-apl-xml/425582/1 "2018-05-21T04:15:58Z")

</div>

_emphasized text_This 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)
 {
        RuntimeDependencies.Add("AndroidImageHandler_APL.xml");
        ....

```

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:

```
D:\Projects\MM419\Matchoo\Plugins\AndroidImageHandler\AndroidImageHandler\Source\AndroidImageHandler

```

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [May 21, 2018, 7:50pm UTC](https://forums.unrealengine.com/t/looking-in-wrong-directory-for-mymodule-apl-xml/425582/2 "2018-05-21T19:50:45Z")

</div>

Scoping the dependency path got past that error:

```
RuntimeDependencies.Add("$(ProjectDir)/Plugins/AndroidImageHandler/AndroidImageHandler/Source/AndroidImageHandler/AndroidImageHandler_APL.xml");

```

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

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [May 22, 2018, 5:36am UTC](https://forums.unrealengine.com/t/looking-in-wrong-directory-for-mymodule-apl-xml/425582/3 "2018-05-22T05:36:00Z")

</div>

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”));
