UDK 4.9.1 android launch Unknown error

I followed the unreal engine android guide to getting starteddocs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html

here is the log file
LogPlayLevel: ====20/09/2015 23:55:07====PREPARING TO MAKE APK=================================================================
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to shim file C:\Users\Zahra\Documents\UnrealProjects\MyProject\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Shim data file up to date so not writing. ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to template target file C:\Users\Zahra\Documents\UnrealProjects\MyProject\Build\Android\src\com\YourCompany\MyProject\AlarmReceiver.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Template target file up to date so not writing. ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to template target file C:\Users\Zahra\Documents\UnrealProjects\MyProject\Build\Android\src\com\YourCompany\MyProject\DownloaderActivity.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Template target file up to date so not writing. ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Writing to template target file C:\Users\Zahra\Documents\UnrealProjects\MyProject\Build\Android\src\com\YourCompany\MyProject\OBBDownloaderService.java ====
LogPlayLevel: UEDeployAndroid.WriteJavaDownloadSupportFiles:
LogPlayLevel: ==== Template target file up to date so not writing. ====
LogPlayLevel: UEDeployAndroid.MakeApk: Cleaning up files based on template dir C:\Users\Zahra\Documents\UnrealProjects\MyProject\Build\Android\src\com\YourCompany\MyProject
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: Building Java with SDK API level ‘android-22’
LogPlayLevel: UEDeployAndroid.CheckDependencies: C:\Users\Zahra\Documents\UnrealProjects\MyProject\Binaries\Android\MyProject-armv7-es2.apk is out of date due to newer input file C:\Program Files\Epic Games\4.9\Engine\Binaries\Android\UE4Game-armv7-es2.so
LogPlayLevel: UEDeployAndroid.MakeApk: Performing complete package - wiping C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate/Android/APK, except for predexedLibs
LogPlayLevel: UEDeployAndroid.MakeApk: bPackageDataInsideApk = False
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====20/09/2015 23:55:11====PREPARING NATIVE CODE=================================================================
LogPlayLevel: UEDeployAndroid.UpdateProjectProperties:
LogPlayLevel: ====20/09/2015 23:55:11====UPDATING BUILD CONFIGURATION FILES====================================================
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: Error: Failed to write project.properties file in ‘C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK\JavaLibs\downloader_library’
LogPlayLevel: Error: java.io.FileNotFoundException: C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK\JavaLibs\downloader_library\project.properties (Access is denied)
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml…
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: Error: Failed to write project.properties file in ‘C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK’
LogPlayLevel: Error: java.io.FileNotFoundException: C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK\project.properties (Access is denied)
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: Error: Failed to write project.properties file in ‘C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19’
LogPlayLevel: Error: java.io.FileNotFoundException: C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK\JavaLibs\google-play-services_lib_rev19\project.properties (Access is denied)

LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml…
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: The system cannot find the path specified.
LogPlayLevel: Error: Failed to write project.properties file in ‘C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK’
LogPlayLevel: Error: java.io.FileNotFoundException: C:\Users\Zahra\Documents\UnrealProjects\MyProject\Intermediate\Android\APK\project.properties (Access is denied)

LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: Copying new .so C:\Program Files\Epic Games\4.9\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder…
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Preparing native code for debugging…
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: C:\NVPACK\android-ndk-r10e/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1

LogPlayLevel: Stacktrace: at UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
LogPlayLevel: at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
LogPlayLevel: at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
LogPlayLevel: at AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
LogPlayLevel: at Project.Deploy(ProjectParams Params)
LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel: at BuildCommand.Execute()
LogPlayLevel: at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 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=Error_Unknown
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: copying UAT log files…
LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully.
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 27.752313
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error

I have downloaded the android works software and used it to install all the plugins and the environment variables are already set so I don’t uderstand why these errors keep apperaing

anyone have any clue how to get rid of these errors?

I have that last error (not the rest) and have been trying to figure it out as well. Really could use help. It’s worth noting i’m getting this with a default project, so it’s not due to anything I added.

Hi ,

What steps are you taking to reproduce this on your end? What template did you choose to base your project on? Does this occur in a clean, blank project with no additional content or is it limited to one project?

Hey thanks for the reply.
I am using the 3rd person template without any starter content and its target class hardware is mobile/Tablet. It is a blank project that runs fine when i run it on my desktop.

thanks for the help!

glad to see I’m not the only one with this problem :stuck_out_tongue:

What specific model of tablet? Is it android or iOS?

If it’s any help, in my case i’m building for ETC2 inside Unreal 4.9.2. I’ve also tried it in 4.8.3 with the same result. It does not even put anything inside my target folder (besides the empty ETC2 subfolder).

I actually have one hypothesis for my problem: My graphics card just died. The packaging needs to compress the textures and so I THINK it could be because i don’t have enough video memory (also I have 16GB of RAM on my computer). However, the logs don’t say anything to that effect.

I’ve attached my log as well.link text

I’m currently trying to build it for android. I tried to build on HTC M8 and Samsung galaxy but to no avail the same error messages popped up. My graphics card is Nvidia 770 with 4GB of dedicated DDR5 RAM and 8 GB of DDR3 RAM for the rest of my system and my graphic’s card can borrow RAM from the extra 8GB when needed so it should be more than enough to be able to build for androids
Thanks

I also tried to build using ECT1 and ETC2

Which Samsung galaxy specifically? What steps did you take to build it? Have you checked to make sure you have the proper provisions and SDK to be able to build to the devices?

I followed the steps exactly outlined by the UE 4 documents to setting up my android device here the link to the document
https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html

I tried to build the project for Samsung Galaxy S4 and S3

So for me I hadn’t followed this tutorial but now I did and it works. I was trying to package the app using the folders I was using for development in Unity. HOWEVER, the mysterious thing is that in the Project Settings, under Android SDK, It’s still using the path to the SDK,JDK, Apache ANT (removed NDK in desperation yesterday) I was using for unity, not the ones that were installed by AndroidWorks.

And yet somehow it’s definitely because of that install that it worked. Sooo… maybe try downloading the sdk,ndk, jdk, ant as recommended by Unity (it’s actually the steps laid out by Oculus)?

Thanks for tip I’ll try it tonight and see how it goes

I followed the steps laid out by Oculus and it fixed all the older errors but now I’ve got these errors.

Please help me

UPDATING BUILD CONFIGURATIONFILES
UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml…
UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml…
UEDeployAndroid.MakeApk:

PREPARING NATIVE CODE
UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Preparing native code for debugging…
BuildCommand.Execute: ERROR: BUILD FAILED

Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: C:/Users/Zahra/Documents/Android Dev/android-ndk-r10e/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1

.
.
.

Program.Main: ERROR: ERROR: C:/Users/Zahra/Documents/Android Dev/android-ndk-r10e/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1

ProcessManager.KillAll: Trying to kill 1 spawned processes.
ProcessManager.KillAll: UE4Editor
ProcessManager.KillAll: Killing process: UE4Editor
ProcessResult.StopProcess: Process UE4Editor successfully exited.
Program.Main: AutomationTool exiting with ExitCode=1
Domain_ProcessExit
ProcessManager.KillAll: Trying to kill 0 spawned processes.
copying UAT log files…

RunUAT.bat ERROR: AutomationTool was unable to run successfully.
BUILD FAILED

thanks

I found the problem I had a space in the directory, I’ve fixed that issue but now I still have the problem that the ant.bat file from the NDK file wont find the build.xml file from the SDK file in the Tools subdirectory in “ant” folder how do I write the file directory so I can tell where the build.xml file is for the ant.bat

heres the log file

Did you try the steps listed here? Android Development Basics for Unreal Engine | Unreal Engine 5.1 Documentation

Specifically, check the sections on your NDK and Ant files, there is some information that may be useful to you.

I have looked at the steps but to no avail, it didn’t help. I narrowed down the problem being that ant.bat from the NDK file will not locate the build.xml file from the SDK file so How do I fix this

Can you post a screenshot of your android SDK and the full logs in a .txt file so I can take a look?