Third party library not found when packaging for android

Hi, I am trying to launch the project to a mobile device but I get the errors:

fatal error: 'library/file.h' file not found
    #include <library/file.h>

When launching on windows I don’t get these errors. I am using UE 4.27.
Also I am using a non-ue asset loading from project dir which is not found when packaging.
Thankyou in advance!

Seems like the 'library/file.h' file can’t be found. Are you able to package a new blank project, or do you get the same error?

So the problem was the wrong path in build.cs file, I fixed with:

PublicIncludePaths.AddRange(
				new string[] {
                    Path.Combine(PluginDirectory,"Source/Library/Public"),
				}
				);

Thankyou for your time!

1 Like