Download

Package Android Cardboard VR project failed

I just follow the document https://docs.unrealengine.com/latest/INT/Platforms/GoogleVR/QuickStart/index.html
And I just want to build which support cardboard not daydream.

My android configuration:

NDK:R11C
ANT:1.9.7
JDK:1.7.0

Error log

UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Writing new GameActivity.java file to F:\UnrealProj\vr\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Preparing native code for debugging…
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: UnrealBuildTool Exception: ERROR: F:/develop/android-ndk-r11c/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1
UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 24.9580133s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Unreal\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe vr Android Development -Project=F:\UnrealProj
UATHelper: Packaging (Android (ATC)): \vr\vr.uproject F:\UnrealProj\vr\vr.uproject -remoteini=“F:\UnrealProj\vr” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2016.09.14-17.37.30.txt’
UATHelper: Packaging (Android (ATC)): 在 AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (ATC)): 在 AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (ATC)): 在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Android (ATC)): 在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (Android (ATC)): 在 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 (ATC)): 在 AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictionary
2 InTargetToManifest) UATHelper: Packaging (Android (ATC)): 在 Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Android (ATC)): 在 BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Android (ATC)): 在 AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Android (ATC)): 在 AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Android (ATC)): 在 AutomationTool.Automation.Process(String] Arguments) UATHelper: Packaging (Android (ATC)): 在 AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Android (ATC)): 在 AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Android (ATC)): 在 AutomationTool.Program.Main()
UATHelper: Packaging (Android (ATC)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (ATC)): BUILD FAILED

Could anybody help me? Thx a lot.

Unfortunately the failure is in ndk-build.cmd which is a wrapper from calling make and there isn’t anything useful in the log about the error. You can try editing F:/develop/android-ndk-r11c/ndk-build.cmd and adding --trace before the -f “%NDK_ROOT%…” line to get more information.