Made a new project for “Mobile/Phone”, scalable 2d/3d and no starting assets. The template was the blank one. When trying to launch the game on my phone, it fails. This is the log:
LogPlayLevel: ==== Writing new GameActivity.java file to C:\Unreal Projects\DerpShooterT3\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: Copying new .so C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder…
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Preparing native code for debugging…
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: ERROR: C:/Program Files/NWORKS/android-ndk-r11c/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: copying UAT log files…
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 4.002636
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error
Could you post the full log file? It doesn’t seem like the main error message is here. The messages stated here are mainly saying that it failed and aren’t really giving any details as to why.
It seems like another user who was having this issue fixed it by running the editor (UE4Editor.exe) as an Administrator prior to packaging. You can see his post here:
Could you try this and see if it is able to solve the issue?
So that we can see if this is related only to the android/mobile parts of the building process, can you try packaging for Windows to see if that will complete correctly? If so, at least we know what kind of errors to look for. If not, please upload the new logs. Pastebin is fine if it’s too large.