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"

Packaging Error: Unknown Error

I've been trying to package my project for Android ATC and I followed the Unreal and Google Cardboard VR Setup Documentation completely, but it still won't build! It fails and it says error unknown. :( Here's a copy of my output log. Please help!

 UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 2.431439s to run mono, ExitCode=0
 UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: mono "/Users/Shared/UnrealEngine/4.14/Engine/Binaries/DotNET/UnrealBuildTool.exe" MyProject2 Android Development -Project="/Users/shrutiashok/Documents/Unreal Projects/MyProject2/MyProject2.uproject"  "/Users/shrutiashok/Documents/Unreal Projects/MyProject2/MyProject2.uproject"  -remoteini="/Users/
 shrutiashok/Documents/Unreal Projects/MyProject2" -noxge -nocreatestub -NoHotReload -ignorejunk
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Creating makefile for MyProject2 (.uproject file is newer)
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Compiling Native code with NDK API 'android-24'
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Performing 2 actions (8 in parallel)
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: [1/2] clang++ UELinkerFixups.cpp [arm64-es2]
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: [2/2] clang++ MyProject2-arm64-es2.so
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: /Users/shrutiashok/NVPACK/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: skipping incompatible /Users/Shared/UnrealEngine/4.14/Engine/Source/ThirdParty/GoogleVR/lib/android_arm//libgvr.so when sear
 ching for -lgvr
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: /Users/shrutiashok/NVPACK/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: Warning: type of symbol `eglClientWaitSyncKHR' changed from 2 to 1 in /Users/Shared/UnrealEngine/4.14/Engine/Binaries/Androi
 d/UE4-OpenGLDrv-arm64-es2.a(Module.OpenGLDrv.1_of_3.cpp-arm64-es2.o)
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: /Users/shrutiashok/NVPACK/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: Warning: type of symbol `eglCreateSyncKHR' changed from 2 to 1 in /Users/Shared/UnrealEngine/4.14/Engine/Binaries/Android/UE
 4-OpenGLDrv-arm64-es2.a(Module.OpenGLDrv.1_of_3.cpp-arm64-es2.o)
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: /Users/shrutiashok/NVPACK/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: Warning: type of symbol `eglDestroySyncKHR' changed from 2 to 1 in /Users/Shared/UnrealEngine/4.14/Engine/Binaries/Android/U
 E4-OpenGLDrv-arm64-es2.a(Module.OpenGLDrv.1_of_3.cpp-arm64-es2.o)
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: /Users/shrutiashok/NVPACK/android-ndk-r12b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: Warning: type of symbol `eglGetSystemTimeNV' changed from 2 to 1 in /Users/Shared/UnrealEngine/4.14/Engine/Binaries/Android/
 UE4-OpenGLDrv-arm64-es2.a(Module.OpenGLDrv.1_of_3.cpp-arm64-es2.o)
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Total build time: 21.22 seconds
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: NDK version: 24, GccVersion: 4.9
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Receipt Filename: /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Binaries/Android/MyProject2.target
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: AndroidPlugin: Plugins/Runtime/GoogleVR/GoogleVRHMD/Source/GoogleVRHMD/GoogleVRHMD_APL.xml
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: UPL: ../Plugins/Runtime/GoogleVR/GoogleVRHMD/Source/GoogleVRHMD/GoogleVRHMD_APL.xml
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ====4/20/2017 11:18:24 PM====PREPARING TO MAKE APK=================================================================
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Writing to shim file /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Build/Android/src/com/epicgames/ue4/DownloadShim.java ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Shim data file up to date so not writing. ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Writing to template target file /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Build/Android/src/com/YourCompany/MyProject2/AlarmReceiver.java ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Writing to template target file /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Build/Android/src/com/YourCompany/MyProject2/DownloaderActivity.java ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Writing to template target file /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Build/Android/src/com/YourCompany/MyProject2/OBBDownloaderService.java ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Cleaning up files based on template dir /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Build/Android/src/com/YourCompany/MyProject2
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Building Java with SDK API level 'android-24'
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Binaries/Android/MyProject2-arm64-es2.apk is out of date due to newer input file /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Binaries/Android/MyProject2-arm64-es2.so
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: UPL Init: arm64-v8a
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: GoogleVRHMD init
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Sustained-performance mode is desired
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Packaging app for Cardboard deployment.
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: On build machine.
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Disabling Show Launch Image for Daydream enabled application
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: bPackageDataInsideApk = False
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Added repository: /Users/shrutiashok/NVPACK/android-sdk-macosx/extras/android/m2repository
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Added repository: ../../Engine/Source/ThirdParty/Android/extras/google/m2repository
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Added repository: ../../Engine/Source/ThirdParty/Android/extras/android/m2repository
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-ads, 9.2.0
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-auth, 9.2.0
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-games, 9.2.0
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-plus, 9.2.0
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ====4/20/2017 11:18:25 PM====PREPARING NATIVE CODE=================================================================
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: On build machine.
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Disabling Show Launch Image for Daydream enabled application
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Copying GoogleVR buildtime files to staging
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Directory ../../Engine//Source/ThirdParty/GoogleVR/lib/common_library copied to /Users/shrutiashok/Documents/Unreal Projects/MyProject2/Intermediate/Android/APK/JavaLibs/common_library
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ====4/20/2017 11:18:25 PM====UPDATING BUILD CONFIGURATION FILES====================================================
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Error: Target id 'android-24' is not valid. Use 'android list targets' to get the target ids.
 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: UnrealBuildTool Exception: ERROR: /Users/shrutiashok/NVPACK/android-sdk-macosx/tools/android failed with args --silent update lib-project --path JavaLibs/common_library --target android-24
 UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 22.549625s to run mono, ExitCode=5
 UATHelper: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): /Users/Shared/UnrealEngine/4.14/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject2 Android Development -Project="/Users/shrutiashok/Documents/Unreal Projects/MyProject2/MyProjec
 t2.uproject"  "/Users/shrutiashok/Documents/Unreal Projects/MyProject2/MyProject2.uproject"  -remoteini="/Users/shrutiashok/Documents/Unreal Projects/MyProject2" -noxge -nocreatestub -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.04.20-23.18.03.txt' 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.CommandUtils.RunAndLog (System.String App, System.String CommandLine, System.String Logfile, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars, AutomationTool.SpewFilterCallbackType SpewFilterCallback) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.CommandUtils.RunAndLog (AutomationTool.CommandEnvironment Env, System.String App, System.String CommandLine, System.String LogName, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars, AutomationTool.SpewFilterCallbackType SpewFilterCallback)
  [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, System.String CommandLine, System.String LogName, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, UnrealBuildTool.FileReference Project, System.String Target, System.String Platform, System.String Config, System.String AdditionalArgs, System.String LogName, System.Collections.Generic.Dictionary`2 EnvVars) [0x0
 0000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.UE4Build.BuildWithUBT (System.String TargetName, UnrealTargetPlatform TargetPlatform, System.String Config, UnrealBuildTool.FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, System.String InAddArgs, Boolean Fo
 rceUnity, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.UE4Build.Build (AutomationTool.BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, System.Collections.Generic.Dictionary`2 PlatformEnvVars, Nullab
 le`1 InChangelistNumberOverride, System.Collections.Generic.Dictionary`2 InTargetToManifest) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at Project.Build (AutomationTool.BuildCommand Command, AutomationTool.ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at BuildCookRun.ExecuteBuild () [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.BuildCommand.Execute () [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.Automation.Execute (System.Collections.Generic.List`1 CommandsToExecute, Tools.DotNETCommon.CaselessDictionary.CaselessDictionary`1 Commands) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.Automation.Process (System.String[] Arguments) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.Program.MainProc (System.Object Param) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.InternalUtils.RunSingleInstance (System.Func`2 Main, System.Object Param) [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)):   at AutomationTool.Program.Main () [0x00000] in :0 
 UATHelper: Packaging (Android (ATC)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
 UATHelper: Packaging (Android (ATC)): RunUAT ERROR: AutomationTool was unable to run successfully.
 PackagingResults:Error: Error Unknown Error
Product Version: UE 4.14
Tags:
more ▼

asked Apr 21 '17 at 12:45 PM in Packaging & Deployment

avatar image

sierra_alpha
1 1 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hello sierra_alpha,

Please be sure to look further up in the logs for more information. When receiving an error such as "Error Unknown Error" more information can be found on the error further up in the logs. A quick way to search for these is to Ctrl+F or filter for the word "error". In the future you could then use this information to look up any known issues.

After looking into your logs I was able to find the error "Target id 'android-24' is not valid." It appears that you have not installed the android-24 platform with the SDK manager.exe in android-sdk-windows.

Make it a great day

more ▼

answered Apr 21 '17 at 02:54 PM

avatar image

Rudy Q ♦♦ STAFF
47.5k 545 132 522

(comments are locked)
10|2000 characters needed characters left
Your answer
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