# \[5.1\] 'Missing precompiled manifest' error when building code plugin for Android

**URL:** <https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-1, Android, question\
**Created:** [November 16, 2022, 12:56pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983 "2022-11-16T12:56:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [November 16, 2022, 12:56pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/1 "2022-11-16T12:56:56Z")

</div>

Hi,

I try to build some code plugins for marketplace release for 5.1 for Android platform. Unfortunately I get and error:

```auto
NDK toolchain: r21e, NDK version: 210500, ClangVersion: 9.0.9
Parsing headers for UnrealGame
  Running Internal UnrealHeaderTool C:\Users\Dawid\Downloads\PluginBuildDir\CooldownComponent\HostProject\HostProject.uproject C:\Users\Dawid\Downloads\PluginBuildDir\CooldownComponent\HostProject\Intermediate\Build\Android\arm64\UnrealGame\Development\UnrealGame.uhtmanifest -WarningsAsErrors -installed
Total of 6 written
Reflection code generated for UnrealGame in 0.9663007 seconds
Missing precompiled manifest for 'Launch', 'C:\Program Files\Epic Games\UE_5.1\Engine\Intermediate\Build\Android\arm64\UnrealGame\Development\Launch\Launch.precompiled'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in Launch.build.cs to override. If part of a plugin, also check if its 'Type' is correct.

```

The command i’m using is:

```auto
RunUAT.bat BuildPlugin -Plugin="C:\...\CooldownComponentPlugin.uplugin" -Package="C:\...CooldownComponent" -TargetPlatforms=Win64+Android -Rocket

```

Note that it only fails when compiling for Android, Windows is OK. Exactly the same command works firne for 5.0 and 4.27.

What I’ve tried:

1. Upgrade android sdk’s and ndk’s (but maybe I messed something up?)
2. Put some random stuff into .build.cs:

```auto
        PrecompileForTargets = PrecompileTargetsType.Any;
        Type = ModuleType.CPlusPlus;
        bUsePrecompiled = true;

```

---

<div class="post-metadata">

**Author:** ![rionix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rionix/32/955347_2.png) [@rionix](https://forums.unrealengine.com/u/rionix)\
**Post date:** [November 16, 2022, 4:08pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/2 "2022-11-16T16:08:06Z")

</div>

I have the same bug. ☹

---

<div class="post-metadata">

**Author:** ![Nineva\_Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nineva_studios/32/469616_2.png) [@Nineva\_Studios](https://forums.unrealengine.com/u/Nineva_Studios)\
**Post date:** [November 16, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/3 "2022-11-16T17:08:02Z")

</div>

Having the same issue here, can’t push updates to the marketplace ☹

---

<div class="post-metadata">

**Author:** ![SouryGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SouryGame](https://forums.unrealengine.com/u/SouryGame)\
**Post date:** [November 16, 2022, 5:18pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/4 "2022-11-16T17:18:44Z")

</div>

It looks like the files exist, they’re just not in the correct folder. For whatever reason the unreal is looking for:

…/Intermediate/Build/Android/arm64/UnrealGame/…

while the files are in

…/Intermediate/Build/Android/UnrealGame/…

I’m not sure what’s the root of the problem, but this can hopefully help someone figure it out.

---

<div class="post-metadata">

**Author:** ![Kafumanto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kafumanto/32/1194651_2.png) [@Kafumanto](https://forums.unrealengine.com/u/Kafumanto)\
**Post date:** [November 16, 2022, 5:20pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/5 "2022-11-16T17:20:22Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![SouryGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SouryGame](https://forums.unrealengine.com/u/SouryGame)\
**Post date:** [November 16, 2022, 6:35pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/6 "2022-11-16T18:35:23Z")

</div>

My friend @Daniel_The_S wrote a quick perl script that you can use to generate a batch file that will create a junctions for all the folders for the problem directories. (Please only use if you know what you’re doing. I won’t be able to give you any support. This is only a quick workaround.)

```auto
use v5.30;

open my $F, "cmd /c dir /ad /s /b|";
while ( <$F> )
{
    chomp;
    next unless /Intermediate\\Build\\Android$/;
    my $androidDir = $_;
    my $arm64Dir = "$androidDir\\arm64";
    my $unrealGameDir = "$androidDir\\UnrealGame";
    next unless -d $unrealGameDir;
    unless ( -d $arm64Dir )
    {
        say "mkdir \"$arm64Dir\"";
    }
    my $newUnrealDir = "$arm64Dir\\UnrealGame";
    unless ( -d $newUnrealDir )
    {
        say "mklink /j \"$newUnrealDir\" \"$unrealGameDir\"";
    }

}
close $F;

```

Just run the script in the engine directory from command line and output it to a file:

`perl script.pl > fixPlugins.bat`

and then run the generated .bat file as an administrator. You should be able to package your plugin now.

---

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [November 16, 2022, 7:50pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/7 "2022-11-16T19:50:58Z")

</div>

> [@SouryGame](#):
>
> My friend @Daniel_The_S wrote a quick perl script that you can use to generate a batch file that will create a junctions for all the folders in the game directory. (Please only use if you know what you’re doing. I won’t be able to give you any support. This is only a quick workaround.)

Hi,

this solution (if it works, I didn’t test it) will compile plugin on our local machines. But the compilation will still fail on epic side? As far as I understand (hovewer i am new marketplace seller), they compile plugins themselves with aforementioned command. So this is not a solution for marketplace sellers, just for people wanting to locally compile plugin.

---

<div class="post-metadata">

**Author:** ![SouryGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SouryGame](https://forums.unrealengine.com/u/SouryGame)\
**Post date:** [November 16, 2022, 7:58pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/8 "2022-11-16T19:58:31Z")

</div>

Hi, yes this works only when you’re trying to package the plugin yourself. Since this looks like an engine problem I hope that Epic will be able to fix this issue themselves when they’re compiling the plugins. Of course I might be wrong and it’s some configuration issue that’s needed for 5.1.

---

<div class="post-metadata">

**Author:** ![Nineva\_Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nineva_studios/32/469616_2.png) [@Nineva\_Studios](https://forums.unrealengine.com/u/Nineva_Studios)\
**Post date:** [November 16, 2022, 7:59pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/9 "2022-11-16T19:59:36Z")

</div>

This works great, wonder if someone has similar for OS X

---

<div class="post-metadata">

**Author:** ![Daniel\_The\_S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daniel\_The\_S](https://forums.unrealengine.com/u/Daniel_The_S)\
**Post date:** [November 17, 2022, 3:21pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/10 "2022-11-17T15:21:44Z")

</div>

You can try this script (I don’t have any plugins that I can test it with, but it seems to setup the file system correctly):

```auto
#!/usr/bin/perl
use v5.30;

my $doit = $ARGV[0] eq "--doit";

open my $F, "find . -type d -print|";
while ( <$F> )
{
    chomp;
    next unless m#Intermediate/Build/Android$#;
    my $androidDir = $_;
    my $arm64Dir = "$androidDir/arm64";
    my $unrealGameDir = "$androidDir/UnrealGame";
    next unless -d $unrealGameDir;
    unless ( -d $arm64Dir )
    {
        say "Creating \"$arm64Dir\"";
        mkdir($arm64Dir) if $doit;
    }
    my $newUnrealDir = "$arm64Dir/UnrealGame";
    unless ( -d $newUnrealDir )
    {
      my $relativeLink = "../UnrealGame";
      say "Linking \"$relativeLink\" to \"$newUnrealDir\"";
      symlink($relativeLink, $newUnrealDir) if $doit;
    }
}
close $F;

```

Put it in a file called `fixdirs.pl`, chmod to 755 and run it. It will show what it is going to do. If it looks good, you can re-run it with `fixdirs.pl --doit` and it will actually make the changes.

---

<div class="post-metadata">

**Author:** ![JackP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackP](https://forums.unrealengine.com/u/JackP)\
**Post date:** [November 29, 2022, 4:21am UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/11 "2022-11-29T04:21:33Z")

</div>

Hi, thanks for the report, and the workarounds posted. We’ll make sure we get this fixed for 5.1.1 and we will also post the UBT/UAT code fix once we have it.

---

<div class="post-metadata">

**Author:** ![BujakD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BujakD](https://forums.unrealengine.com/u/BujakD)\
**Post date:** [November 29, 2022, 8:32am UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/12 "2022-11-29T08:32:05Z")

</div>

Hi Jack, are you from epic staff? Is this confirmation that epic engineers know about the issue and will fix it?

cheers

> [@JackP](#):
>
> Hi, thanks for the report, and the workarounds posted. We’ll make sure we get this fixed for 5.1.1 and we will also post the UBT/UAT code fix once we have it.

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [December 5, 2022, 7:55pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/13 "2022-12-05T19:55:57Z")

</div>

Yes, Jack’s an Epic staff member—and as he said, the team is aware of the issue and plan to fix for 5.1.1.

Thanks for reporting it!

---

<div class="post-metadata">

**Author:** ![NuLL3rr0r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NuLL3rr0r](https://forums.unrealengine.com/u/NuLL3rr0r)\
**Post date:** [February 3, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/14 "2023-02-03T14:28:18Z")

</div>

We are facing the same issue. Our plugin recently added support for Android. So, that means we cannot push updates because RunUAT fails for the Android target.

Is it possible to just push the update for 4.27 and 5.0 until this is fixed in 5.1.1?

---

<div class="post-metadata">

**Author:** ![Youshisu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Youshisu](https://forums.unrealengine.com/u/Youshisu)\
**Post date:** [September 16, 2024, 6:17pm UTC](https://forums.unrealengine.com/t/5-1-missing-precompiled-manifest-error-when-building-code-plugin-for-android/691983/15 "2024-09-16T18:17:12Z")

</div>

Im on 5.3 and don’t see this as solution.

I used Unreal Plugin named “Functional Tests” for testing. And I don’t know how to remove it to cook shipping build
