I’ve installed UE for the first time on my PC. As per many tutorials online, I went ahead and installed:
- Codeworks (tegra)
- My phone’s specific USB driver
- And got my phone’s Oculus Sig
- Visual Studio 2015
However, once I try to package for Android ETC2, or any other platform for that matter, I get the following errors on the Output Log:
UATHelper: Packaging (Android (ETC2)): Running AutomationTool...
UATHelper: Packaging (Android (ETC2)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=Z:/VR/REAL_ESTATE/demo/apk/source/Zintax_Cardboard_2-2/Zintax_Cardboard/Zintax_Cardboard.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=Z:/VR/REAL_ESTATE/demo/apk/source/Zintax_Cardboard_2-2/Zintax_Cardboard/Zintax_Cardboa
rd.uproject -cook -stage -archive -archivedirectory=Z:/VR/REAL_ESTATE/demo/apk/source/Zintax_Cardboard_2-2/Zintax_Cardboard -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -compressed -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ETC2 -build -CrashReporter -utf8output
UATHelper: Packaging (Android (ETC2)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Android (ETC2)): BuildCookRun.SetupParams: Setting up ProjectParams for Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard\Zintax_Cardboard.uproject
UATHelper: Packaging (Android (ETC2)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe Zintax_Cardboard Android Development -Project=Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard\Zintax_Cardboard.uproject Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard
\Zintax_Cardboard.uproject -remoteini="Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ERROR: System.IO.FileLoadException: Could not load file or assembly 'file:///Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard\Intermediate\Build\BuildRules\Zintax_CardboardModuleRules.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: File name: 'file:///Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard\Intermediate\Build\BuildRules\Zintax_CardboardModuleRules.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.DynamicCompilation.CompileAssembly(FileReference OutputAssemblyPath, List`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean TreatWarningsAsErrors)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, List`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.RulesAssembly..ctor(IReadOnlyList`1 Plugins, List`1 ModuleFiles, List`1 TargetFiles, Dictionary`2 ModuleFileToPluginInfo, FileReference AssemblyFileName, RulesAssembly Parent)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEBuildTarget.CreateTarget(TargetDescriptor Desc)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments, FileReference ProjectFile)
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: Took 2.6550619s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe Zintax_Cardboard Android Development -Project=Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_
2-2\Zintax_Cardboard\Zintax_Cardboard.uproject Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard\Zintax_Cardboard.uproject -remoteini="Z:\VR\REAL_ESTATE\demo\apk\source\Zintax_Cardboard_2-2\Zintax_Cardboard" -noxge -generatemanifest -NoHotReload. See logfile for details: 'UnrealBuildTool-2017.01.11-13.16.29.txt'
UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Android (ETC2)): 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, Dictionary`2 EnvVars)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictionary`2 InTargetToManifest)
UATHelper: Packaging (Android (ETC2)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Android (ETC2)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Android (ETC2)): at BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Android (ETC2)): at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Android (ETC2)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Android (ETC2)): at AutomationTool.Program.Main()
UATHelper: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (ETC2)): BUILD FAILED
PackagingResults:Error: Error Unknown Error
The only 2 error messages I see there are:
- UnrealBuildTool: ERROR: System.IO.FileLoadException: Could not load file or assembly …
- Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): …
Any thoughts? I have no idea where to start debugging this.