The error only happen when I’m packaged the game with setting like:
- build configuration = shipping
- for distribution = true
- remove oculus signature files from distribution = true
The error happen because it was trying to do entitlement check (when “for distribution” & “remove oculus signature files from distribution” are true) but can’t find com.oculus.svclib.
Can someone help me how to solve this?
Below are the snipped log where the error happen:
ATHelper: Packaging (Android (ASTC)): -compile:
UATHelper: Packaging (Android (ASTC)): [javac] Compiling 50 source files to E:\Unreal Projects\Train2Fall\Intermediate\Android\APK\bin\classes
UATHelper: Packaging (Android (ASTC)): [javac] E:\Unreal Projects\Train2Fall\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:529: error: package com.oculus.svclib does not exist
UATHelper: Packaging (Android (ASTC)): [javac] com.oculus.svclib.OVREntitlementChecker.doAutomatedCheck(this);
UATHelper: Packaging (Android (ASTC)): [javac] ^
UATHelper: Packaging (Android (ASTC)): [javac] Note: Some input files use or override a deprecated API.
UATHelper: Packaging (Android (ASTC)): [javac] Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (ASTC)): [javac] 1 error
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
UATHelper: Packaging (Android (ASTC)): D:\NVPACK\android-sdk-windows\tools\ant\build.xml:716: The following error occurred while executing this line:
UATHelper: Packaging (Android (ASTC)): D:\NVPACK\android-sdk-windows\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
UATHelper: Packaging (Android (ASTC)): Total time: 21 seconds
UATHelper: Packaging (Android (ASTC)): Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: Could not find file 'E:\Unreal Projects\Train2Fall\Intermediate/Android/APK/bin/BoldExperience-release.apk'.
UATHelper: Packaging (Android (ASTC)): File name: 'E:\Unreal Projects\Train2Fall\Intermediate/Android/APK/bin/BoldExperience-release.apk'
UATHelper: Packaging (Android (ASTC)): at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Packaging (Android (ASTC)): at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Packaging (Android (ASTC)): at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
UATHelper: Packaging (Android (ASTC)): at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
UATHelper: Packaging (Android (ASTC)): at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
UATHelper: Packaging (Android (ASTC)): at Project.Package(ProjectParams Params, Int32 WorkingCL)
UATHelper: Packaging (Android (ASTC)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Android (ASTC)): at AutomationTool.Program.Main()
UATHelper: Packaging (Android (ASTC)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults:Error: Error Unknown Error