UE 4.9 Android Launch fails

Hi,

Ever since I upgraded I can’t seem to launch the game on my android device. I get the following error :

 LogPlayLevel: UnrealBuildTool: BUILD FAILED
 LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:892: The following error occurred while executing this line:
 LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:894: The following error occurred while executing this line:
 LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:906: The following error occurred while executing this line:
 LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:283: null returned: 2
 LogPlayLevel: UnrealBuildTool:
 LogPlayLevel: UnrealBuildTool: Total time: 17 seconds
 LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: ERROR: cmd.exe failed with args /c "D:\NVPACK\apache-ant-1.8.2/bin/ant.bat" debug

Please find the complete log below :

LogPlayLevel: Project.Build: ********** BUILD COMMAND STARTED **********
LogPlayLevel: UE4Build.Build: XGE was requested, but is unavailable, so we won't use it.
LogPlayLevel: UE4Build.Build: ************************* UE4Build:
LogPlayLevel: UE4Build.Build: ************************* ForceMonolithic: False
LogPlayLevel: UE4Build.Build: ************************* ForceNonUnity:False
LogPlayLevel: UE4Build.Build: ************************* ForceDebugInfo: False
LogPlayLevel: UE4Build.Build: ************************* UseXGE: False
LogPlayLevel: UE4Build.Build: ************************* UseParallelExecutor: False
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 7.011697
LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FLauncherTask///Thread_352c_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FLauncherTask///Thread_1e2c_0///####STATCAT_Advanced####
LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Unreal Engine\Unreal Engine\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe NinjaGame Android Development  D:\UnrealProjects\NinjaGame\NinjaGame.uproject  -noxge -generatemanifest -rocket -NoHotReloadFromIDE
LogPlayLevel: UnrealBuildTool: NDK version: 21, GccVersion: 4.9
LogPlayLevel: CommandUtils.Run: Run: Took 4.1301565s to run UnrealBuildTool.exe, ExitCode=0
LogPlayLevel: UE4Build.PrepareManifest: Copied UBT manifest to C:\Program Files\Unreal Engine\Unreal Engine\4.9\Engine\Programs\AutomationTool\Saved\Logs\UBTManifest.0.xml
LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Unreal Engine\Unreal Engine\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe NinjaGame Android Development  D:\UnrealProjects\NinjaGame\NinjaGame.uproject  -noxge -rocket -NoHotReloadFromIDE -ignorejunk
LogPlayLevel: UnrealBuildTool: Target is up to date.
LogPlayLevel: CommandUtils.Run: Run: Took 2.5817369s to run UnrealBuildTool.exe, ExitCode=0
LogPlayLevel: CommandUtils.Run: Run: C:\Program Files\Unreal Engine\Unreal Engine\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe "D:\UnrealProjects\NinjaGame\NinjaGame.uproject" Android Development -prepfordeploy -rocket -NoHotReloadFromIDE -ignorejunk
LogPlayLevel: UnrealBuildTool: NDK version: 21, GccVersion: 4.9
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: ====9/1/2015 7:51:28 AM====PREPARING TO MAKE APK=================================================================
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: ==== Writing to shim file D:\UnrealProjects\NinjaGame\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:\UnrealProjects\NinjaGame\Build\Android\src\com\YourCompany\NinjaGame\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:\UnrealProjects\NinjaGame\Build\Android\src\com\YourCompany\NinjaGame\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:\UnrealProjects\NinjaGame\Build\Android\src\com\YourCompany\NinjaGame\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:\UnrealProjects\NinjaGame\Build\Android\src\com\YourCompany\NinjaGame
LogPlayLevel: UnrealBuildTool: Building Java with SDK API level 'android-21'
LogPlayLevel: UnrealBuildTool: D:\UnrealProjects\NinjaGame\Binaries\Android\NinjaGame-armv7-es2.apk is out of date due to newer input file D:\UnrealProjects\NinjaGame\Binaries\Android\NinjaGame-armv7-es2.so
LogPlayLevel: UnrealBuildTool: bPackageDataInsideApk = False
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: ====9/1/2015 7:51:31 AM====PREPARING NATIVE CODE=================================================================
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: ====9/1/2015 7:51:31 AM====UPDATING BUILD CONFIGURATION FILES====================================================
LogPlayLevel: UnrealBuildTool: Updating project.properties, local.properties, and build.xml...
LogPlayLevel: UnrealBuildTool: Updating project.properties, local.properties, and build.xml...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: ====9/1/2015 7:51:38 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================
LogPlayLevel: UnrealBuildTool: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings)
LogPlayLevel: UnrealBuildTool: Buildfile: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\build.xml
LogPlayLevel: UnrealBuildTool: [getbuildtools] Using latest Build Tools: 22.0.1
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-mode-check:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-debug-files:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -check-env:
LogPlayLevel: UnrealBuildTool:  [checkenv] Android SDK Tools Revision 24.2.0
LogPlayLevel: UnrealBuildTool:  [checkenv] Installed at D:\NVPACK\android-sdk-windows
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -setup:
LogPlayLevel: UnrealBuildTool:      [echo] Project Name: NinjaGame
LogPlayLevel: UnrealBuildTool:   [gettype] Project Type: Application
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-debug-mode:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -debug-obfuscation-check:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-build:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -build-setup:
LogPlayLevel: UnrealBuildTool: [getbuildtools] Using latest Build Tools: 22.0.1
LogPlayLevel: UnrealBuildTool:      [echo] Resolving Build Target for NinjaGame...
LogPlayLevel: UnrealBuildTool: [gettarget] Project Target:   Android 5.0.1
LogPlayLevel: UnrealBuildTool: [gettarget] API level:        21
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Creating output directories if needed...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Resolving Dependencies for NinjaGame...
LogPlayLevel: UnrealBuildTool: [dependency] Library dependencies:
LogPlayLevel: UnrealBuildTool: [dependency]
LogPlayLevel: UnrealBuildTool: [dependency] ------------------
LogPlayLevel: UnrealBuildTool: [dependency] Ordered libraries:
LogPlayLevel: UnrealBuildTool: [dependency]
LogPlayLevel: UnrealBuildTool: [dependency] ------------------
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Building Libraries with 'debug'...
LogPlayLevel: UnrealBuildTool: Duplicated project name in import. Project custom_rules defined first in D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\custom_rules.xml and again in D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\custom_rules.xml
LogPlayLevel: UnrealBuildTool: [getbuildtools] Using latest Build Tools: 22.0.1
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: nodeps:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-mode-check:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-debug-files:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -check-env:
LogPlayLevel: UnrealBuildTool:  [checkenv] Android SDK Tools Revision 24.2.0
LogPlayLevel: UnrealBuildTool:  [checkenv] Installed at D:\NVPACK\android-sdk-windows
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -setup:
LogPlayLevel: UnrealBuildTool:      [echo] Project Name: google-play-services_lib_rev19
LogPlayLevel: UnrealBuildTool:   [gettype] Project Type: Android Library
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-debug-mode:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -debug-obfuscation-check:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-build:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -build-setup:
LogPlayLevel: UnrealBuildTool: [getbuildtools] Using latest Build Tools: 22.0.1
LogPlayLevel: UnrealBuildTool:      [echo] Resolving Build Target for google-play-services_lib_rev19...
LogPlayLevel: UnrealBuildTool: [gettarget] Project Target:   Android 5.0.1
LogPlayLevel: UnrealBuildTool: [gettarget] API level:        21
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Creating output directories if needed...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Resolving Dependencies for google-play-services_lib_rev19...
LogPlayLevel: UnrealBuildTool: [dependency] Library dependencies:
LogPlayLevel: UnrealBuildTool: [dependency] No Libraries
LogPlayLevel: UnrealBuildTool: [dependency]
LogPlayLevel: UnrealBuildTool: [dependency] ------------------
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -code-gen:
LogPlayLevel: UnrealBuildTool: [mergemanifest] Found Deleted Target File
LogPlayLevel: UnrealBuildTool: [mergemanifest] Merging AndroidManifest files into one.
LogPlayLevel: UnrealBuildTool: [mergemanifest] Manifest merger disabled. Using project manifest only.
LogPlayLevel: UnrealBuildTool:      [echo] Handling aidl files...
LogPlayLevel: UnrealBuildTool:      [aidl] No AIDL files to compile.
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling RenderScript files...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling Resources...
LogPlayLevel: UnrealBuildTool:      [aapt] Found Deleted Target File
LogPlayLevel: UnrealBuildTool:      [aapt] Generating resource IDs...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling BuildConfig class...
LogPlayLevel: UnrealBuildTool: [buildconfig] No need to generate new BuildConfig.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -compile:
LogPlayLevel: UnrealBuildTool:     [javac] Compiling 1 source file to D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\classes
LogPlayLevel: UnrealBuildTool:      [echo] Creating library output jar file...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -obfuscate:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -dex:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not convert bytecode...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -crunch:
LogPlayLevel: UnrealBuildTool:    [crunch] Crunching PNG Files in source dir: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\res
LogPlayLevel: UnrealBuildTool:    [crunch] To destination dir: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\res
LogPlayLevel: UnrealBuildTool:    [crunch] Crunched 0 PNG files to update cache
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -package-resources:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not package resources...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -package:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not package apk...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-package:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -do-debug:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not create apk...
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\build.prop
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\build.prop
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\build.prop
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\build.prop
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-build:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: debug:
LogPlayLevel: UnrealBuildTool: Duplicated project name in import. Project custom_rules defined first in D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\custom_rules.xml and again in D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\custom_rules.xml
LogPlayLevel: UnrealBuildTool: [getbuildtools] Using latest Build Tools: 22.0.1
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: nodeps:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-mode-check:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-debug-files:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -check-env:
LogPlayLevel: UnrealBuildTool:  [checkenv] Android SDK Tools Revision 24.2.0
LogPlayLevel: UnrealBuildTool:  [checkenv] Installed at D:\NVPACK\android-sdk-windows
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -setup:
LogPlayLevel: UnrealBuildTool:      [echo] Project Name: downloader_library
LogPlayLevel: UnrealBuildTool:   [gettype] Project Type: Android Library
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -set-debug-mode:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -debug-obfuscation-check:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-build:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -build-setup:
LogPlayLevel: UnrealBuildTool: [getbuildtools] Using latest Build Tools: 22.0.1
LogPlayLevel: UnrealBuildTool:      [echo] Resolving Build Target for downloader_library...
LogPlayLevel: UnrealBuildTool: [gettarget] Project Target:   Android 5.0.1
LogPlayLevel: UnrealBuildTool: [gettarget] API level:        21
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Creating output directories if needed...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Resolving Dependencies for downloader_library...
LogPlayLevel: UnrealBuildTool: [dependency] Library dependencies:
LogPlayLevel: UnrealBuildTool: [dependency] No Libraries
LogPlayLevel: UnrealBuildTool: [dependency]
LogPlayLevel: UnrealBuildTool: [dependency] ------------------
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -code-gen:
LogPlayLevel: UnrealBuildTool: [mergemanifest] Found Deleted Target File
LogPlayLevel: UnrealBuildTool: [mergemanifest] Merging AndroidManifest files into one.
LogPlayLevel: UnrealBuildTool: [mergemanifest] Manifest merger disabled. Using project manifest only.
LogPlayLevel: UnrealBuildTool:      [echo] Handling aidl files...
LogPlayLevel: UnrealBuildTool:      [aidl] No AIDL files to compile.
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling RenderScript files...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling Resources...
LogPlayLevel: UnrealBuildTool:      [aapt] Found Deleted Target File
LogPlayLevel: UnrealBuildTool:      [aapt] Generating resource IDs...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling BuildConfig class...
LogPlayLevel: UnrealBuildTool: [buildconfig] No need to generate new BuildConfig.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -compile:
LogPlayLevel: UnrealBuildTool:     [javac] Compiling 1 source file to D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\classes
LogPlayLevel: UnrealBuildTool:      [echo] Creating library output jar file...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -obfuscate:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -dex:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not convert bytecode...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -crunch:
LogPlayLevel: UnrealBuildTool:    [crunch] Crunching PNG Files in source dir: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\res
LogPlayLevel: UnrealBuildTool:    [crunch] To destination dir: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\res
LogPlayLevel: UnrealBuildTool:    [crunch] Crunched 0 PNG files to update cache
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -package-resources:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not package resources...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -package:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not package apk...
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-package:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -do-debug:
LogPlayLevel: UnrealBuildTool:      [echo] Library project: do not create apk...
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\build.prop
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\build.prop
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\build.prop
LogPlayLevel: UnrealBuildTool: [propertyfile] Updating property file: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\build.prop
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-build:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: debug:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -code-gen:
LogPlayLevel: UnrealBuildTool: [mergemanifest] Found Deleted Target File
LogPlayLevel: UnrealBuildTool: [mergemanifest] Merging AndroidManifest files into one.
LogPlayLevel: UnrealBuildTool: [mergemanifest] Manifest merger disabled. Using project manifest only.
LogPlayLevel: UnrealBuildTool:      [echo] Handling aidl files...
LogPlayLevel: UnrealBuildTool:      [aidl] Found 1 AIDL files.
LogPlayLevel: UnrealBuildTool:      [aidl] Compiling 1 AIDL files.
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling RenderScript files...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling Resources...
LogPlayLevel: UnrealBuildTool:      [aapt] Found Deleted Target File
LogPlayLevel: UnrealBuildTool:      [aapt] Generating resource IDs...
LogPlayLevel: UnrealBuildTool:      [echo] ----------
LogPlayLevel: UnrealBuildTool:      [echo] Handling BuildConfig class...
LogPlayLevel: UnrealBuildTool: [buildconfig] No need to generate new BuildConfig.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -compile:
LogPlayLevel: UnrealBuildTool:     [javac] Compiling 22 source files to D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\bin\classes
LogPlayLevel: UnrealBuildTool:     [javac] Note: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\src\com\android\vending\licensing\LicenseChecker.java uses or overrides a deprecated API.
LogPlayLevel: UnrealBuildTool:     [javac] Note: Recompile with -Xlint:deprecation for details.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -post-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -obfuscate:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -dex:
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\bin\classes
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\classes.jar
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\classes.jar
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\vrlib.jar
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\vrplatlib.jar
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\VrApi.jar
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\android-support-v4.jar
LogPlayLevel: UnrealBuildTool:       [dex] input: D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\libs\google-play-services.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed classes-3a5eee2817bcb42c199cad4e563f2fee.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\downloader_library\bin\classes.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed classes-b1a12aaacee1b54293bf291ffa25f223.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\bin\classes.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed vrlib-1479cc322e334a502f8b464cb190e638.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\vrlib.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed vrplatlib-f392bada1db87a0ee7d3b0f756d699ba.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\vrplatlib.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed VrApi-81d39b61f2933b8dc3d85819b39896b9.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\VrApi.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed android-support-v4-e31face7cb820a0f98212a5c98a675e4.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\libs\android-support-v4.jar
LogPlayLevel: UnrealBuildTool:       [dex] Using Pre-Dexed google-play-services-2a0d032f9027e28b90e1761babc415cf.jar <- D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\libs\google-play-services.jar
LogPlayLevel: UnrealBuildTool:       [dex] Found Deleted Target File
LogPlayLevel: UnrealBuildTool:       [dex] Converting compiled files and external libraries into D:\UnrealProjects\NinjaGame\Intermediate\Android\APK\bin\classes.dex...
LogPlayLevel: UnrealBuildTool:        [dx] Merged dex A (181 defs/253.9KiB) with dex B (1 defs/0.5KiB). Result is 182 defs/301.7KiB. Took 0.2s
LogPlayLevel: UnrealBuildTool:        [dx] Merged dex A (182 defs/301.7KiB) with dex B (1 defs/0.4KiB). Result is 183 defs/379.7KiB. Took 0.1s
LogPlayLevel: UnrealBuildTool:        [dx] Merged dex A (183 defs/379.7KiB) with dex B (27 defs/51.9KiB). Result is 210 defs/573.7KiB. Took 0.1s
LogPlayLevel: UnrealBuildTool:        [dx] Merged dex A (210 defs/573.7KiB) with dex B (22 defs/23.9KiB). Result is 232 defs/852.1KiB. Took 0.1s
LogPlayLevel: UnrealBuildTool:        [dx]
LogPlayLevel: UnrealBuildTool:        [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
LogPlayLevel: UnrealBuildTool:        [dx] com.android.dex.DexException: Multiple dex files define Landroid/app/IVRManager;
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.command.dexer.Main.run(Main.java:246)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.command.dexer.Main.main(Main.java:215)
LogPlayLevel: UnrealBuildTool:        [dx]    at com.android.dx.command.Main.main(Main.java:106)
LogPlayLevel: UnrealBuildTool:        [dx]
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: BUILD FAILED
LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:892: The following error occurred while executing this line:
LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:894: The following error occurred while executing this line:
LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:906: The following error occurred while executing this line:
LogPlayLevel: UnrealBuildTool: D:\NVPACK\android-sdk-windows\tools\ant\build.xml:283: null returned: 2
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: Total time: 17 seconds
LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: ERROR: cmd.exe failed with args /c "D:\NVPACK\apache-ant-1.8.2/bin/ant.bat" debug
LogPlayLevel: CommandUtils.Run: Run: Took 29.7177977s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in AutomationUtils.Automation: Command failed (Result:5): C:\Program Files\Unreal Engine\Unreal Engine\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe "D:\UnrealProjects\NinjaGame\NinjaGame.uproject" Android Development -prepfordeploy -rocket -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool-2015.09.01-07.51.26.txt'
LogPlayLevel: Stacktrace:    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
LogPlayLevel:    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
LogPlayLevel:    at AndroidPlatform.PostBuildTarget(UE4Build Build, String ProjectName, String UProjectPath, String Config)
LogPlayLevel:    at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String 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)
LogPlayLevel:    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
LogPlayLevel:    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel:    at BuildCommand.Execute()
LogPlayLevel:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    at AutomationTool.Automation.Process(String[] CommandLine)
LogPlayLevel:    at AutomationTool.Program.MainProc(Object Param)
LogPlayLevel:    at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
LogPlayLevel:    at AutomationTool.Program.Main()
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=5
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: copying UAT log files...
LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully.
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 36.044713
LogPlayLevel: BUILD FAILED

Many thanks for your time !

Hey DarkZ,

When you switched from 4.8 to 4.9, did you make any adjustments to your SDK? If so, did you install AndroidWorks correctly, did you install it at all? From looking at your folder structure, it looks as though you haven’t set AndroidWorks up.

Please let me know if you have any further questions, thanks!

I did install AndoirdWorks according to the instructions. Not sure what else I need to set it up for being used correctly.

This is the error:

com.android.dex.DexException: Multiple dex files define Landroid/app/IVRManager;

This looks like the project has both the old and the new jar files in the Intermediate/Android/APK/libs. Try deleting Intermediate/Android/APK and package again.

The other possibility is the new engine version installed over the older one and still has the old librarys:

Engine/Build/Android/Java/libs should only have this jar files:
android-support-v4.jar
VrApi.jar
vrplatlib.jar

This indeed helped me fix the issue ! Many thanks Chris ! I deleted the Android folder inside intermediate and also inside the Build folder as a safe measure and then I could launch on Android.

I following the steps still not fix my problem. and where is the VrApi.jar vrplatlib.jar?

This is an example of the path where you should be able to locate the Java > Libs folders: D:\Epic Games\4.10\Engine\Build\Android\Java\libs