Unable to build with Google VR plugin in 4.12


Issue 100% reproducible on clean install of UE4.12, Windows 7.

  • Create blank blueprint project for mobile.
  • Enable Google VR plugin.
  • After reload of the engine/editor, build and try to deploy to Android phone.
  • BUILD FAILED. Console log below.

If the plugin is disabled, it deploys to Android with no problem. If the plugin is enabled, it fails to deploy again. The Android phone is using Android 5.1.1 and its HW has been tested with demanding Cardboard apps (it is an LG Flex 2)



LogPlayLevel: E:\NVPACK\android-sdk-windows\tools\ant\build.xml:601: The following error occurred while executing this line:

LogPlayLevel: E:\NVPACK\android-sdk-windows\tools\ant\build.xml:653: The following error occurred while executing this line:

LogPlayLevel: E:\NVPACK\android-sdk-windows\tools\ant\build.xml:698: null returned: 1

LogPlayLevel: Total time: 4 seconds

LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
System.IO.FileNotFoundException: Could not find file ‘C:\Users\Fran\Documents\Unreal Projects\deletemeagain\Intermediate/Android/APK/bin/deletemeagain-debug.apk’.

LogPlayLevel: File name: ‘C:\Users\Fran\Documents\Unreal Projects\deletemeagain\Intermediate/Android/APK/bin/deletemeagain-debug.apk’

LogPlayLevel: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

LogPlayLevel: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)

LogPlayLevel: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)

LogPlayLevel: at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)

LogPlayLevel: at AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)

LogPlayLevel: at Project.Deploy(ProjectParams Params)

LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params)

LogPlayLevel: at AutomationTool.BuildCommand.Execute()
LogPlayLevel: at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)

LogPlayLevel: at AutomationTool.Automation.Process(String[] CommandLine)

LogPlayLevel: at AutomationTool.Program.MainProc(Object Param)

LogPlayLevel: at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)

LogPlayLevel: at AutomationTool.Program.Main()

LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

HI fortesdev,

Can you make sure that you’ve followed the steps outlined in this documentation guide: https://docs.unrealengine.com/latest/INT/Platforms/GoogleVR/QuickStart/index.html

Following along with this I was able to deploy to GoogleVR.

I did a quick Google Search and found these results that may be worth you investigating: Search Results Here

  • Try reinstalling the AndroidWorks
  • Make sure you’ve got the correct NDK from Android
  • Install the latest Java version

Thank you!