Announcement

Collapse
No announcement yet.

Invalid or unsupported command

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid or unsupported command

    LogPlayLevel: UnrealBuildTool: Invalid or unsupported command "--silent update lib-project --path JavaLibs/common_library --target android-24"

    When building for adnroid. target api 25
    logs tail
    Code:
    SavedPackage=1077
    LoadPackage=56
    LogPlayLevel: Completed Launch On Stage: Cooking in the editor, Time: 6.951059
    LogPlayLevel: Running AutomationTool...
    LogPlayLevel: Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="C:/Users/dima/Documents/Unreal Projects/CPP3/CPP3.uproject" BuildCookRun -project="C:/Users/dima/Documents/Unreal Projects/CPP3/CPP3.uproject" -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -ue4exe=UE4Editor-Cmd.exe -utf8outp
    ut -platform=Android_ASTC -targetplatform=Android -cookflavor=ASTC -build -map=/Game/NewMap3 -skipcook -CookInEditor -iterativecooking -compressed -iterativedeploy -stage -deploy -cmdline="/Game/NewMap3 -Messaging" -device=Android_ASTC@2d7da47f -addcmdline="-SessionId=D0E7BF73494D2849B044DC9264C66B81 -SessionOwner='dima' -SessionName='Launch On Device' " -ru
    n
    LogPlayLevel: Automation.Process: Setting up command environment.
    LogPlayLevel: BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\dima\Documents\Unreal Projects\CPP3\CPP3.uproject
    LogPlayLevel: Project.Build: ********** BUILD COMMAND STARTED **********
    LogPlayLevel: Completed Launch On Stage: Build Task, Time: 1.254531
    LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe CPP3 Android Development -Project="C:\Users\dima\Documents\Unreal Projects\CPP3\CPP3.uproject"  "C:\Users\dima\Documents\Unreal Projects\CPP3\CPP3.uproject"  -remoteini="C:\Users\dima\Documents\Unreal Projects\CPP3" -noxge -generatemanifest -No
    HotReload
    LogPlayLevel: UnrealBuildTool: NDK version: 24, GccVersion: 4.9
    LogPlayLevel: CommandUtils.Run: Run: Took 1,1585009s to run UnrealBuildTool.exe, ExitCode=0
    LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe CPP3 Android Development -Project="C:\Users\dima\Documents\Unreal Projects\CPP3\CPP3.uproject"  "C:\Users\dima\Documents\Unreal Projects\CPP3\CPP3.uproject"  -remoteini="C:\Users\dima\Documents\Unreal Projects\CPP3" -noxge -NoHotReload -ignorej
    unk
    LogPlayLevel: UnrealBuildTool: Creating makefile for CPP3 (ini files are newer that UBTMakefile)
    LogPlayLevel: UnrealBuildTool: NDK version: 24, GccVersion: 4.9
    LogPlayLevel: UnrealBuildTool: Compiling Native code with NDK API 'android-24'
    LogPlayLevel: UnrealBuildTool: Target is up to date
    LogPlayLevel: UnrealBuildTool: Deploying CPP3 Android Development...
    LogPlayLevel: UnrealBuildTool: Receipt Filename: C:\Users\dima\Documents\Unreal Projects\CPP3\Binaries\Android\CPP3.target
    LogPlayLevel: UnrealBuildTool: AndroidPlugin: Plugins\Runtime\GoogleVR\GoogleVRController\Source\GoogleVRController\GoogleVRController_APL.xml
    LogPlayLevel: UnrealBuildTool: AndroidPlugin: Plugins\Runtime\GoogleVR\GoogleVRHMD\Source\GoogleVRHMD\GoogleVRHMD_APL.xml
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: UPL: ..\Plugins/Runtime/GoogleVR/GoogleVRController/Source/GoogleVRController/GoogleVRController_APL.xml
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: UPL: ..\Plugins/Runtime/GoogleVR/GoogleVRHMD/Source/GoogleVRHMD/GoogleVRHMD_APL.xml
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ====11.04.2017 6:07:43====PREPARING TO MAKE APK=================================================================
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Writing to shim file C:\Users\dima\Documents\Unreal Projects\CPP3\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Shim data file up to date so not writing. ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Writing to template target file C:\Users\dima\Documents\Unreal Projects\CPP3\Build\Android\src\com\YourCompany\CPP3\AlarmReceiver.java ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Template target file up to date so not writing. ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Writing to template target file C:\Users\dima\Documents\Unreal Projects\CPP3\Build\Android\src\com\YourCompany\CPP3\DownloaderActivity.java ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Template target file up to date so not writing. ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Writing to template target file C:\Users\dima\Documents\Unreal Projects\CPP3\Build\Android\src\com\YourCompany\CPP3\OBBDownloaderService.java ====
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ==== Template target file up to date so not writing. ====
    LogPlayLevel: UnrealBuildTool: Cleaning up files based on template dir C:\Users\dima\Documents\Unreal Projects\CPP3\Build\Android\src\com\YourCompany\CPP3
    LogPlayLevel: UnrealBuildTool: Building Java with SDK API level 'android-24'
    LogPlayLevel: UnrealBuildTool: Previous .apk file(s) were made with different build settings, forcing repackage.
    LogPlayLevel: UnrealBuildTool: UPL Init: arm64-v8a
    LogPlayLevel: UnrealBuildTool: GoogleVR Controller init
    LogPlayLevel: UnrealBuildTool: GoogleVRHMD init
    LogPlayLevel: UnrealBuildTool: Sustained-performance mode is not desired
    LogPlayLevel: UnrealBuildTool: Project supports daydream, will enable async reprojection when possible.
    LogPlayLevel: UnrealBuildTool: On build machine.
    LogPlayLevel: UnrealBuildTool: Disabling Show Launch Image for Daydream enabled application
    LogPlayLevel: UnrealBuildTool: bPackageDataInsideApk = False
    LogPlayLevel: UnrealBuildTool: Added repository: c:\NVPACK\android-sdk-windows\extras\android\m2repository
    LogPlayLevel: UnrealBuildTool: Added repository: ..\..\Engine\Source\ThirdParty\Android\extras\google\m2repository
    LogPlayLevel: UnrealBuildTool: Added repository: ..\..\Engine\Source\ThirdParty\Android\extras\android\m2repository
    LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-ads, 9.2.0
    LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-auth, 9.2.0
    LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-games, 9.2.0
    LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
    LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-plus, 9.2.0
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ====11.04.2017 6:07:44====PREPARING NATIVE CODE=================================================================
    LogPlayLevel: UnrealBuildTool: On build machine.
    LogPlayLevel: UnrealBuildTool: Disabling Show Launch Image for Daydream enabled application
    LogPlayLevel: UnrealBuildTool: Copying GoogleVR buildtime files to staging
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: Directory ../../Engine//Source/ThirdParty/GoogleVR/lib/common_library copied to C:\Users\dima\Documents\Unreal Projects\CPP3\Intermediate/Android/APK/JavaLibs/common_library
    LogPlayLevel: UnrealBuildTool: Copying GoogleVR buildtime files to staging
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: Directory ../../Engine//Source/ThirdParty/GoogleVR/lib/common_library copied to C:\Users\dima\Documents\Unreal Projects\CPP3\Intermediate/Android/APK/JavaLibs/common_library
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: ====11.04.2017 6:07:44====UPDATING BUILD CONFIGURATION FILES====================================================
    LogPlayLevel: UnrealBuildTool: **************************************************************************
    LogPlayLevel: UnrealBuildTool: The "android" command is deprecated.
    LogPlayLevel: UnrealBuildTool: For manual SDK, AVD, and project management, please use Android Studio.
    LogPlayLevel: UnrealBuildTool: For command-line tools, use tools\bin\sdkmanager.bat
    LogPlayLevel: UnrealBuildTool: and tools\bin\avdmanager.bat
    LogPlayLevel: UnrealBuildTool: **************************************************************************
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: Invalid or unsupported command "--silent update lib-project --path JavaLibs/common_library --target android-24"
    LogPlayLevel: UnrealBuildTool:
    LogPlayLevel: UnrealBuildTool: Supported commands are:
    LogPlayLevel: UnrealBuildTool: android list target
    LogPlayLevel: UnrealBuildTool: android list avd
    LogPlayLevel: UnrealBuildTool: android list device
    LogPlayLevel: UnrealBuildTool: android create avd
    LogPlayLevel: UnrealBuildTool: android move avd
    LogPlayLevel: UnrealBuildTool: android delete avd
    LogPlayLevel: UnrealBuildTool: android list sdk
    LogPlayLevel: UnrealBuildTool: android update sdk
    LogPlayLevel: UnrealBuildTool: ERROR: c:/NVPACK/android-sdk-windows//tools/android.bat failed with args --silent update lib-project --path JavaLibs/common_library --target android-24
    LogPlayLevel: UnrealBuildTool: Total build time: 5,25 seconds (NoActionsToExecute executor: 0,00 seconds)
    LogPlayLevel: CommandUtils.Run: Run: Took 5,6025022s to run UnrealBuildTool.exe, ExitCode=5
    LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe CPP3 Android Development -Project="C:\Users\dima\Documents\Unreal Projects\CPP3\CPP3.uproject"  "C:\Users\dima\Documents\Unre
    al Projects\CPP3\CPP3.uproject"  -remoteini="C:\Users\dima\Documents\Unreal Projects\CPP3" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.04.11-06.07.38.txt'
    LogPlayLevel:    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
    LogPlayLevel:    at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
    LogPlayLevel:    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
    LogPlayLevel:    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
    LogPlayLevel:    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)
    LogPlayLevel:    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)
    LogPlayLevel:    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
    LogPlayLevel:    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
    LogPlayLevel:    at BuildCookRun.ExecuteBuild()
    LogPlayLevel:    at AutomationTool.BuildCommand.Execute()
    LogPlayLevel:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
    LogPlayLevel:    at AutomationTool.Automation.Process(String[] Arguments)
    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=5 (5)
    LogPlayLevel: Completed Launch On Stage: Build Task, Time: 6.265495
    LogPlayLevel: BUILD FAILED
    PackagingResults:Error: Error Launch failed! Unknown Error

  • #2
    First, there is no reason to set NDK to android-24, you can use android-19. SDK API Level can be set to android-24.

    The depreciation error may be due to a newer version Android SDK Tools. I wouldn't use anything newer than 25.2.3 (this is what I'm currently using). I'm also using SDK Platform-tools 25.0.0 and Build-Tools 24.0.2.

    Comment


    • #3
      So how to fix it?

      Comment


      • #4
        Originally posted by Moonmana View Post
        So how to fix it?
        Go to Project Settings -> Android SDK and change NDK API Level to android-19. Then go to your CodeWorks installation path and run SDK Manager. Download and install NDK API Level 19. Try build again and check if it helped.

        Comment


        • #5
          Platform-tools and Build-Tools both 24.0.1
          set NDK to android-19
          SDK to android-24

          Got same error

          Comment


          • #6
            LogPlayLevel: Completed Launch On Stage: Cooking in the editor, Time: 2.804872
            LogPlayLevel: Running AutomationTool...
            LogPlayLevel: Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="D:/Unreal Projects/MobileAppFinal/MobileAppFinal.uproject" BuildCookRun -project="D:/Unreal Projects/MobileAppFinal/MobileAppFinal.uproject" -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -ue4exe=UE4Editor-Cmd.exe -utf8output
            -platform=Android_ATC -targetplatform=Android -cookflavor=ATC -build -map=/Game/TestMap -skipcook -iterativecooking -compressed -iterativedeploy -stage -deploy -cmdline="/Game/TestMap -Messaging" -device=Android_ATC@FA35ES902676 -addcmdline="-SessionId=B51C77FC4340FE059AA1DF877A56B3A9 -SessionOwner='ianma' -SessionName='Launch On Device' " -run
            LogPlayLevel: Automation.Process: Setting up command environment.
            LogPlayLevel: UProjectInfo.FillProjectInfo: WARNING: Project search path 'D:\Unreal Projects' is not under root directory, ignoring.
            LogPlayLevel: BuildCookRun.SetupParams: Setting up ProjectParams for D:\Unreal Projects\MobileAppFinal\MobileAppFinal.uproject
            LogPlayLevel: Project.Build: ********** BUILD COMMAND STARTED **********
            LogPlayLevel: Completed Launch On Stage: Build Task, Time: 2.762242
            LogPlayLevel: CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe MobileAppFinal Android Development -Project="D:\Unreal Projects\MobileAppFinal\MobileAppFinal.uproject" "D:\Unreal Projects\MobileAppFinal\MobileAppFinal.uproject" -remoteini="D:\Unreal Projects\MobileAppFinal" -noxge -generatemanifest -No
            HotReload
            LogPlayLevel: UnrealBuildTool: NDK version: 19, GccVersion: 4.9
            LogPlayLevel: CommandUtils.Run: Run: Took 2.7917887s to run UnrealBuildTool.exe, ExitCode=0
            LogPlayLevel: CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe MobileAppFinal Android Development -Project="D:\Unreal Projects\MobileAppFinal\MobileAppFinal.uproject" "D:\Unreal Projects\MobileAppFinal\MobileAppFinal.uproject" -remoteini="D:\Unreal Projects\MobileAppFinal" -noxge -NoHotReload -ignorej
            unk
            LogPlayLevel: UnrealBuildTool: Creating makefile for MobileAppFinal (changes to target files)
            LogPlayLevel: UnrealBuildTool: NDK version: 19, GccVersion: 4.9
            LogPlayLevel: UnrealBuildTool: Compiling Native code with NDK API 'android-19'
            LogPlayLevel: UnrealBuildTool: Performing 3 actions (9 in parallel)
            LogPlayLevel: UnrealBuildTool: [1/3] clang++.exe UELinkerFixupsName.h [armv7-es2]
            LogPlayLevel: UnrealBuildTool: [2/3] clang++.exe UELinkerFixups.cpp [armv7-es2]
            LogPlayLevel: UnrealBuildTool: [3/3] clang++.exe MobileAppFinal-armv7-es2.so
            LogPlayLevel: UnrealBuildTool: Total build time: 30.79 seconds
            LogPlayLevel: UnrealBuildTool: NDK version: 19, GccVersion: 4.9
            LogPlayLevel: UnrealBuildTool: Receipt Filename: D:\Unreal Projects\MobileAppFinal\Binaries\Android\MobileAppFinal.target
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ====4/25/2017 6:38:46 PM====PREPARING TO MAKE APK=================================================================
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Writing to shim file D:\Unreal Projects\MobileAppFinal\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Shim data file up to date so not writing. ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Writing to template target file D:\Unreal Projects\MobileAppFinal\Build\Android\src\com\YourCompany\MobileAppFinal\AlarmReceiver.java ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Template target file up to date so not writing. ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Writing to template target file D:\Unreal Projects\MobileAppFinal\Build\Android\src\com\YourCompany\MobileAppFinal\DownloaderActivity.java ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Template target file up to date so not writing. ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Writing to template target file D:\Unreal Projects\MobileAppFinal\Build\Android\src\com\YourCompany\MobileAppFinal\OBBDownloaderService.java ====
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ==== Template target file up to date so not writing. ====
            LogPlayLevel: UnrealBuildTool: Cleaning up files based on template dir D:\Unreal Projects\MobileAppFinal\Build\Android\src\com\YourCompany\MobileAppFinal
            LogPlayLevel: UnrealBuildTool: Building Java with SDK API level 'android-19'
            LogPlayLevel: UnrealBuildTool: Previous .apk file(s) were made with different build settings, forcing repackage.
            LogPlayLevel: UnrealBuildTool: UPL Init: armeabi-v7a
            LogPlayLevel: UnrealBuildTool: On build machine.
            LogPlayLevel: UnrealBuildTool: bPackageDataInsideApk = False
            LogPlayLevel: UnrealBuildTool: Added repository: D:\Program Files (x86)\NVPACK\android-sdk-windows\extras\google\m2repository
            LogPlayLevel: UnrealBuildTool: Added repository: D:\Program Files (x86)\NVPACK\android-sdk-windows\extras\android\m2repository
            LogPlayLevel: UnrealBuildTool: Added repository: ..\..\Engine\Source\ThirdParty\Android\extras\google\m2repository
            LogPlayLevel: UnrealBuildTool: Added repository: ..\..\Engine\Source\ThirdParty\Android\extras\android\m2repository
            LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-ads, 9.2.0
            LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-auth, 9.2.0
            LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-games, 9.2.0
            LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
            LogPlayLevel: UnrealBuildTool: AARImports: com.google.android.gms, play-services-plus, 9.2.0
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ====4/25/2017 6:38:47 PM====PREPARING NATIVE CODE=================================================================
            LogPlayLevel: UnrealBuildTool: On build machine.
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: ====4/25/2017 6:38:47 PM====UPDATING BUILD CONFIGURATION FILES====================================================
            LogPlayLevel: UnrealBuildTool: **************************************************************************
            LogPlayLevel: UnrealBuildTool: The "android" command is deprecated.
            LogPlayLevel: UnrealBuildTool: For manual SDK, AVD, and project management, please use Android Studio.
            LogPlayLevel: UnrealBuildTool: For command-line tools, use tools\bin\sdkmanager.bat
            LogPlayLevel: UnrealBuildTool: and tools\bin\avdmanager.bat
            LogPlayLevel: UnrealBuildTool: **************************************************************************
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: Invalid or unsupported command "--silent update lib-project --path JavaLibs/downloader_library --target android-19"
            LogPlayLevel: UnrealBuildTool:
            LogPlayLevel: UnrealBuildTool: Supported commands are:
            LogPlayLevel: UnrealBuildTool: android list target
            LogPlayLevel: UnrealBuildTool: android list avd
            LogPlayLevel: UnrealBuildTool: android list device
            LogPlayLevel: UnrealBuildTool: android create avd
            LogPlayLevel: UnrealBuildTool: android move avd
            LogPlayLevel: UnrealBuildTool: android delete avd
            LogPlayLevel: UnrealBuildTool: android list sdk
            LogPlayLevel: UnrealBuildTool: android update sdk
            LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: ERROR: D:/Program Files (x86)/NVPACK/android-sdk-windows/tools/android.bat failed with args --silent update lib-project --path JavaLibs/downloader_library --target android-19
            LogPlayLevel: CommandUtils.Run: Run: Took 33.8876137s to run UnrealBuildTool.exe, ExitCode=5
            LogPlayLevel: 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 MobileAppFinal Android Development -Project="D:\Unreal Projects\MobileAppFinal\MobileAppFinal.uproject" "D:\Unreal Projec
            ts\MobileAppFinal\MobileAppFinal.uproject" -remoteini="D:\Unreal Projects\MobileAppFinal" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.04.25-18.38.14.txt'
            LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
            LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
            LogPlayLevel: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
            LogPlayLevel: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
            LogPlayLevel: 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)
            LogPlayLevel: 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)
            LogPlayLevel: at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
            LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params)
            LogPlayLevel: at BuildCookRun.ExecuteBuild()
            LogPlayLevel: at AutomationTool.BuildCommand.Execute()
            LogPlayLevel: at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
            LogPlayLevel: at AutomationTool.Automation.Process(String[] Arguments)
            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=5 (5)
            LogPlayLevel: Completed Launch On Stage: Build Task, Time: 36.060437
            LogPlayLevel: BUILD FAILED
            PackagingResults:Error: Error Launch failed! Unknown Error



            I am getting the same error.

            Comment


            • #7
              LogPlayLevel: UnrealBuildTool: **************************************************************************
              LogPlayLevel: UnrealBuildTool: The "android" command is deprecated.
              LogPlayLevel: UnrealBuildTool: For manual SDK, AVD, and project management, please use Android Studio.
              LogPlayLevel: UnrealBuildTool: For command-line tools, use tools\bin\sdkmanager.bat
              LogPlayLevel: UnrealBuildTool: and tools\bin\avdmanager.bat
              LogPlayLevel: UnrealBuildTool: **************************************************************************

              You have upgraded the Android SDK Tools too high. 25.2.3 works but 25.2.5 does not.

              Comment


              • #8
                How to reduce the sdk tools level?

                Comment


                • #9
                  Use the CodeWorks for Android 1r6u1 installer in 4.16 to install it again; it will download the right versions.

                  Comment


                  • #10
                    UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: ====9/19/2017 9:32:04 PM====PREPARING TO MAKE APK=================================================================
                    UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: Requires at least SDK API level 23, currently set to 'android-19'
                    UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: ERROR: Can't make an APK without an API installed (see "android.bat list targets")
                    UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: Total build time: 59.82 seconds (Local executor: 23.42 seconds)
                    UATHelper: Packaging (Android (ETC1)): CommandUtils.Run: Run: Took 60.0346676s to run UnrealBuildTool.exe, ExitCode=5
                    UATHelper: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\The Unreal 4\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Roll Android Shipping -Project="E:\The Unreal 4\Roll\UE4Files\Roll\Roll.uproject" "E:\The Unreal 4\R
                    oll\UE4Files\Roll\Roll.uproject" -NoUBTMakefiles -remoteini="E:\The Unreal 4\Roll\UE4Files\Roll" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.09.19-21.31.04.txt'
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
                    UATHelper: Packaging (Android (ETC1)): 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 (ETC1)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
                    UATHelper: Packaging (Android (ETC1)): 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 (ETC1)): 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 (ETC1)): 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 (ETC1)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
                    UATHelper: Packaging (Android (ETC1)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
                    UATHelper: Packaging (Android (ETC1)): at BuildCookRun.ExecuteBuild()
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.BuildCommand.Execute()
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.Automation.Process(String[] Arguments)
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.Program.MainProc(Object Param)
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
                    UATHelper: Packaging (Android (ETC1)): at AutomationTool.Program.Main()
                    UATHelper: Packaging (Android (ETC1)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
                    UATHelper: Packaging (Android (ETC1)): BUILD FAILED
                    PackagingResults:Error: Error Unknown Error


                    I keep getting this any time I try to build it says it requires SDK Api Level 23...when I set it to android-23...I get an error saying that

                    LogPlayLevel: UnrealBuildTool: Invalid or unsupported command "--silent update lib-project --path JavaLibs/downloader_library --target android-19"
                    LogPlayLevel: UnrealBuildTool:
                    LogPlayLevel: UnrealBuildTool: Supported commands are:
                    LogPlayLevel: UnrealBuildTool: android list target
                    LogPlayLevel: UnrealBuildTool: android list avd
                    LogPlayLevel: UnrealBuildTool: android list device
                    LogPlayLevel: UnrealBuildTool: android create avd
                    LogPlayLevel: UnrealBuildTool: android move avd
                    LogPlayLevel: UnrealBuildTool: android delete avd
                    LogPlayLevel: UnrealBuildTool: android list sdk
                    LogPlayLevel: UnrealBuildTool: android update sdk
                    LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: ERROR: D:/Program Files (x86)/NVPACK/android-sdk-windows/tools/android.bat failed with args --silent update lib-project --path JavaLibs/downloader_library --target android-19
                    LogPlayLevel: CommandUtils.Run: Run: Took 33.8876137s to run UnrealBuildTool.exe, ExitCode=5

                    it was building fine before I started using the universal mobile ads plugin...now it doesn't build no matter what I do...can you please help?

                    Comment


                    • #11
                      Your platform tools got updated to an unsupported version. Check the contents of android-sdk-windows/tools/source.properties for the Pkg.Revision. Only the versions installed by CodeWorks for Android 1r6u1 should be used; do not update them.

                      Comment

                      Working...
                      X