x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Can't Build or Package For Android

Hello guys. I've been trying to build for Android (Google VR). I installed the android works for ue4 API-24 (however it's installed in D drive instead of C) I followed a tutorial on Youtube. https://www.youtube.com/watch?v=p3LYkg8WiFo as well as the ue4 documentation. I can't seem to find the problem. My guessing is ant is missing some files. I also tried some methods I found like deleting intermediate and saves from projects and app data ect. Here is the log and I'm waiting for your answers. Bold areas are where I think the problem is of course I might be wrong.

 **UATHelper: Packaging (Android (ASTC)): Running AutomationTool...
 UATHelper: Packaging (Android (ASTC)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="D:/UnrealProjects/AIUE_V01_004 4.14/AIUE_V01_004.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="D:/UnrealProjects/AIUE_V01_004 4.14/AIUE_V01_004.uproject" -cook -stage -archive -archivedirectory="C:/Users/Ugurtan Erkaza
 n/Desktop" -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ASTC -build -CrashReporter -utf8output
 UATHelper: Packaging (Android (ASTC)): Automation.Process: Setting up command environment.
 UATHelper: Packaging (Android (ASTC)): BuildCookRun.SetupParams: Setting up ProjectParams for D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproject
 UATHelper: Packaging (Android (ASTC)): Project.Build: ********** BUILD COMMAND STARTED **********
 UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe AIUE_V01_004 Android Development -Project="D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproject"  "D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproject"  -remoteini="D:\UnrealProjects\AIUE_V01_004 4.14" -no
 xge -generatemanifest -NoHotReload
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
 UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 3.2145475s to run UnrealBuildTool.exe, ExitCode=0
 UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe AIUE_V01_004 Android Development -Project="D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproject"  "D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproject"  -remoteini="D:\UnrealProjects\AIUE_V01_004 4.14" -no
 xge -NoHotReload -ignorejunk
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Creating makefile for AIUE_V01_004 (changes to target files)
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Compiling Native code with NDK API 'android -24'
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Performing 1 actions (4 in parallel)
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: [1/1] clang++.exe AIUE_V01_004-arm64-es2.so
 **UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lz
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lc
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lm
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -llog
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -ldl
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lGLESv2
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lEGL
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lOpenSLES
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -landroid
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lz
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: D:/NVPack/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: skipping incompatible C:/Program Files (x86)/Epic Games/4.14/Engine/Source/ThirdParty/GoogleVR/lib/android_arm//libgvr.so when searching f
 or -lgvr**
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\UnrealProjects\AIUE_V01_004 4.14\Binaries\Android\AIUE_V01_004-arm64-es2.so
 UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Total build time: 10.51 seconds
 UATHelper: Packaging (Android (ASTC)): CommandUtils.Run: Run: Took 12.5885231s to run UnrealBuildTool.exe, ExitCode=5
 UATHelper: Packaging (Android (ASTC)): 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 AIUE_V01_004 Android Development -Project="D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproj
 ect"  "D:\UnrealProjects\AIUE_V01_004 4.14\AIUE_V01_004.uproject"  -remoteini="D:\UnrealProjects\AIUE_V01_004 4.14" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.07.20-18.06.06.txt' 
 UATHelper: Packaging (Android (ASTC)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
 UATHelper: Packaging (Android (ASTC)):    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 (ASTC)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
 UATHelper: Packaging (Android (ASTC)):    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 (ASTC)):    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 (ASTC)):    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, Dictiona
 ry`2 InTargetToManifest)
 UATHelper: Packaging (Android (ASTC)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
 UATHelper: Packaging (Android (ASTC)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
 UATHelper: Packaging (Android (ASTC)):    at BuildCookRun.ExecuteBuild()
 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=5 (5)
 UATHelper: Packaging (Android (ASTC)): BUILD FAILED
 PackagingResults:Error: Error Unknown Error**



Product Version: UE 4.14
Tags:
more ▼

asked Jul 20 '17 at 03:21 PM in Packaging & Deployment

avatar image

Marpione
1 1 1

avatar image hdimit16 Nov 14 '17 at 01:30 PM

I've been struggling with the exact same problem for 5 hours now using 4.16 and 4.18. GoogleVR plugin just doesn't seem to work and there doesn't seem to be a straight forward fix so far. I can't believe that absolutely nobody is using UE4 to develop for Daydream!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question