Download

Error when trying to package for Android

Hello everyone,

I’ve searched everywhere and tried everything but I still can’t find a solution for this problem. Here are the logs and screenshots of my settings attached.
I tried with armv7 and arm64 but still complaining about these references in UE4-Voice-armv7-es2.a…
Thank you!

UATHelper: Packaging (Android (All)): UnrealBuildTool: NDK version: 21, GccVersion: 4.9
UATHelper: Packaging (Android (All)): UnrealBuildTool: Compiling Native code with NDK API ‘android-21’
UATHelper: Packaging (Android (All)): UnrealBuildTool: Performing 2 actions (4 in parallel)
UATHelper: Packaging (Android (All)): UnrealBuildTool: [1/2] clang++.exe UELinkerFixups.cpp [armv7-es2]
UATHelper: Packaging (Android (All)): UnrealBuildTool: [2/2] clang++.exe PeaceLand-armv7-es2.so
UATHelper: Packaging (Android (All)): UnrealBuildTool: D:/Program Files/Epic Games/UE_4.16/Engine/Binaries/Android/UE4-Voice-armv7-es2.a(Module.Voice.cpp-armv7-es2.o):function FVoiceCaptureOpenSLES::Init(int, int): error: undefined reference to ‘UAndroidPermissionFunctionLibrary::Initialize()’
UATHelper: Packaging (Android (All)): UnrealBuildTool: D:/Program Files/Epic Games/UE_4.16/Engine/Binaries/Android/UE4-Voice-armv7-es2.a(Module.Voice.cpp-armv7-es2.o):function FVoiceCaptureOpenSLES::Init(int, int): error: undefined reference to ‘UAndroidPermissionFunctionLibrary::CheckPermission(FString const&)’
UATHelper: Packaging (Android (All)): UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
UATHelper: Packaging (Android (All)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Hobbies\My Games\PeaceLand - Copy (2) 4.16 - 2\Binaries\Android\PeaceLand-armv7-es2.so
UATHelper: Packaging (Android (All)): UnrealBuildTool: Total build time: 16.01 seconds (Local executor: 0.00 seconds)
UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 16.205927s to run UnrealBuildTool.exe, ExitCode=5

UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Program Files\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe PeaceLand Android Development -Project="D:\Hobbies\My Games\PeaceLand - Copy (2) 4.16 - 2\PeaceLand.u
project" “D:\Hobbies\My Games\PeaceLand - Copy (2) 4.16 - 2\PeaceLand.uproject” -NoUBTMakefiles -remoteini=“D:\Hobbies\My Games\PeaceLand - Copy (2) 4.16 - 2” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2017.09.05-20.18.13.txt’
UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (Android (All)): at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) UATHelper: Packaging (Android (All)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictionar
y2 InTargetToManifest) UATHelper: Packaging (Android (All)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Android (All)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Android (All)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Android (All)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Android (All)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Android (All)): at AutomationTool.Automation.Process(String] Arguments) UATHelper: Packaging (Android (All)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Android (All)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Android (All)): at AutomationTool.Program.Main()
UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (All)): BUILD FAILED
PackagingResults:Error: Error Unknown Error