Download

Build Failed - Gear VR and Unreal

I followed the steps on this video: https://www.youtube.com/watch?v=QVgK0Fdc7Rw&index=1&list=LL1gLtXizV3FvMO-_1gNJBvw

Used the default first person template, added just a simple FBX imported mesh, and when I try to run it to my device it starts to proccess but I get this error:

Error log:

UEDeployAndroid.MakeApk: ====08/12/2017 13:24:47====PERFORMING FINAL APK PACKAGE OPERATION================================================
UEDeployAndroid.CreateRunGradle:
UEDeployAndroid.CreateRunGradle: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UEDeployAndroid.RunCommandLineProgramWithException: Making .apk with Gradle…
ExceptionUtils.PrintExceptionInfo: ==============================================================================
ExceptionUtils.PrintExceptionInfo: ERROR: cmd.exe failed with args /c “D:\Unreal and VR\Unreal Projects\Project1\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug
ExceptionUtils.PrintExceptionInfo: (see C:\Users\gusta\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
ExceptionUtils.PrintExceptionInfo:
ExceptionUtils.PrintExceptionInfo: BuildException: cmd.exe failed with args /c “D:\Unreal and VR\Unreal Projects\Project1\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug
ExceptionUtils.PrintExceptionInfo: em UnrealBuildTool.UEDeployAndroid.RunCommandLineProgramWithException(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
ExceptionUtils.PrintExceptionInfo: em UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir)
ExceptionUtils.PrintExceptionInfo: em UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, DirectoryReference ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
ExceptionUtils.PrintExceptionInfo: em AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
ExceptionUtils.PrintExceptionInfo: em Project.Deploy(ProjectParams Params)
ExceptionUtils.PrintExceptionInfo: em BuildCookRun.DoBuildCookRun(ProjectParams Params)
ExceptionUtils.PrintExceptionInfo: em BuildCookRun.ExecuteBuild()
ExceptionUtils.PrintExceptionInfo: em AutomationTool.BuildCommand.Execute()
ExceptionUtils.PrintExceptionInfo: em AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands)
ExceptionUtils.PrintExceptionInfo: em AutomationTool.Automation.Process(String] Arguments)
ExceptionUtils.PrintExceptionInfo: em AutomationTool.Program.MainProc(Object Param)
ExceptionUtils.PrintExceptionInfo: em AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
ExceptionUtils.PrintExceptionInfo: em AutomationTool.Program.Main()
ExceptionUtils.PrintExceptionInfo: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

Solved every issue I had and got it to run.

Issue #1: From the post.
Solution: Copy SDK Licenses from Android Studio to NVPACK SDK.
Licenses on my …\NVPACK\android-sdk-windows\licenses\android-sdk-license file:
8933bad161af4178b1185d1a37fbf41ea5269c55
d56f5187479451eabf01fb78af6dfcb131a6481e
84831b9409646a918e30573bab4c9c91346d8abd

Issue #2: Build Failed because of Daydream API
Solution: Disabled GoogleVR Plugin

Issue #3: “Failed to open descriptor file error” when running the installed APK on my S7.
Solution: Edit > Project Settings > Project > Packaging > Build Configuration set to Development Client