Android Build Error - LOG ATTACHED

Trying to launch to Android device, keep getting this error, i have manually pointed UE4 to where the Android SDK, ndk and such are in the setting, this didnt fix the error.

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] Generating BuildConfig class.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -pre-compile:
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: -compile:
LogPlayLevel: UnrealBuildTool:     [javac] Compiling 82 source files to F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\bin\classes
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:57: error: cannot find symbol
LogPlayLevel: UnrealBuildTool:     [javac] import com..android.gms.common.api.GoogleApiClient;
LogPlayLevel: UnrealBuildTool:     [javac]                                         ^
LogPlayLevel: UnrealBuildTool:     [javac]   symbol:   class GoogleApiClient
LogPlayLevel: UnrealBuildTool:     [javac]   location: package com..android.gms.common.api
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:58: error: cannot find symbol
LogPlayLevel: UnrealBuildTool:     [javac] import com..android.gms.common.GooglePlayServicesUtil;
LogPlayLevel: UnrealBuildTool:     [javac]                                     ^
LogPlayLevel: UnrealBuildTool:     [javac]   symbol:   class GooglePlayServicesUtil
LogPlayLevel: UnrealBuildTool:     [javac]   location: package com..android.gms.common
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:100: error: package GoogleApiClient does not exist
LogPlayLevel: UnrealBuildTool:     [javac]                                                            GoogleApiClient.ConnectionCallbacks,
LogPlayLevel: UnrealBuildTool:     [javac]                                                                           ^
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:101: error: package GoogleApiClient does not exist
LogPlayLevel: UnrealBuildTool:     [javac]                                                            GoogleApiClient.OnConnectionFailedListener
LogPlayLevel: UnrealBuildTool:     [javac]                                                                           ^
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:147: error: cannot find symbol
LogPlayLevel: UnrealBuildTool:     [javac]    private GoogleApiClient googleClient;
LogPlayLevel: UnrealBuildTool:     [javac]            ^
LogPlayLevel: UnrealBuildTool:     [javac]   symbol:   class GoogleApiClient
LogPlayLevel: UnrealBuildTool:     [javac]   location: class GameActivity
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:722: error: cannot access Api
LogPlayLevel: UnrealBuildTool:     [javac]            .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
LogPlayLevel: UnrealBuildTool:     [javac]                        ^
LogPlayLevel: UnrealBuildTool:     [javac]   class file for com..android.gms.common.api.Api not found
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:718: error: package GoogleApiClient does not exist
LogPlayLevel: UnrealBuildTool:     [javac]        googleClient = new GoogleApiClient.Builder(this)
LogPlayLevel: UnrealBuildTool:     [javac]                                          ^
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:1283: error: method does not override or implement a method from a supertype
LogPlayLevel: UnrealBuildTool:     [javac]    @Override
LogPlayLevel: UnrealBuildTool:     [javac]    ^
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:1318: error: method does not override or implement a method from a supertype
LogPlayLevel: UnrealBuildTool:     [javac]    @Override
LogPlayLevel: UnrealBuildTool:     [javac]    ^
LogPlayLevel: UnrealBuildTool:     [javac] F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate\Android\APK\src\com\epicgames\ue4\GameActivity.java:1325: error: method does not override or implement a method from a supertype
LogPlayLevel: UnrealBuildTool:     [javac]    @Override
LogPlayLevel: UnrealBuildTool:     [javac]    ^
LogPlayLevel: UnrealBuildTool:     [javac] Note: Some input files use or override a deprecated API.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool:     [javac] Note: Recompile with -Xlint:deprecation for details.
LogPlayLevel: UnrealBuildTool: BUILD FAILED
LogPlayLevel: UnrealBuildTool:     [javac] 10 errors
LogPlayLevel: UnrealBuildTool: C:\\android-sdk-windows\tools\ant\build.xml:716: The following error occurred while executing this line:
LogPlayLevel: UnrealBuildTool: C:\\android-sdk-windows\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
LogPlayLevel: UnrealBuildTool:
LogPlayLevel: UnrealBuildTool: Total time: 24 seconds
LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file 'F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate/Android/APK/bin/SimulationStation-debug.apk'.
LogPlayLevel: UnrealBuildTool: File name: 'F:\Unreal Projects\BASIXDIRIV\Endless\Intermediate/Android/APK/bin/SimulationStation-debug.apk'
LogPlayLevel: UnrealBuildTool:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
LogPlayLevel: UnrealBuildTool:    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
LogPlayLevel: UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
LogPlayLevel: UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
LogPlayLevel: UnrealBuildTool:    at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
LogPlayLevel: CommandUtils.Run: Run: Took 135.5695737s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Unreal Engine\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe SimulationStation Android Shipping -Project="F:\Unreal Projects\BASIXDIRIV\Endless\SimulationStation.uproject"  "F:\Unreal Pr
ojects\BASIXDIRIV\Endless\SimulationStation.uproject"  -remoteini="F:\Unreal Projects\BASIXDIRIV\Endless" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.11.06-20.41.05.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 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: 136.127607
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error

Does separate build work?
not entirely sure, but it looks like that your environment variables are not set correctly. Do you have the JDK also installed?

my env variables are a bit messy, but it works :smiley: I believe that you also need to have your phone ABD driver to be set for this. Hope this helps1

I have been launch to Android Devices for like a month then out of nowhere this error comes up, so i have everything installed, and ADB running.

Android SDK is set up the same as yours.

I dont know about the CLASSPATH, java and java2, also I dont know if it makes any difference that I have my JAVA_HOME under the system variables. But I believe you… that it did work with this setup… however it is a bit confusing that you are using two different JDK versions. did you try to sync all the JDK versions in the &system vars plus the ones you are pointing at form Unreal?

about the system and vars, it should not matter as long as you are building logged in as , however according to official forums, only the System Variables will apply to all users. (I guess now its not so relevant, but its good to know in case you might try to build from under another username)

How do I go about syncing java versions in UE4?

Is it this reference
` [javac] Note: Some input files use or override a deprecated API.

[javac] Note: Recompile with -Xlint:deprecation for details.` 

``telling me to recompile? If it is im not sure fimilair with that recompile command.

Im sorry it wasnt clear what I said.
I meant to change all the env. vars to point at the same version(maybe you installed a newer version and it got overwritten). Just check what path are you using in UE4 and change all env vars accordingly. You can see that your CLASSPATH and your JAVA_HOME holds different version paths. and I dont know what version you put into your UE4 SDK setup.

Im also not soo deep in it to know if you have to recompile anything, but usually if you are using a binary version then you shouldnt have to worry about recompiling stuff.

I mean… this is also just a wild guess, but worth trying.

by the way, I believe you didnt answer my question about building an apk :D, could you tell me if you can successfully build out an akp?
also for other eager helper eyes if you could screen your project settings/Android SDK config, that might allow others to spot the culprit.

Not compiling an APK. I changed the class path to match, continue getting the same error. Attached are settings

***UPDATE: I opened another project and it launched that project to the same android device no problem.

lt text

sorry to hear that :frowning: .I know you are not trying to compile an apk…, but launching directly to your device, however knowing if you can build an apk, could narrow down the issue. I just experienced something similar lately. It was a totally unexpected issue with an element in my level, im sorry but I cannot recall what that exactly was. Did you try to launch another map on the device? (also are you sure that the build support settings match how they were in the working version. I mean armv7 OpenGLES2 etc. … Just because I remember that I had some building issue with those)

I have launched another map no problems, and no APK is compiling at all when launch to the device/ with the same settings as the not launching file. Should I disable armv7 and OpenGLES?

No the armv7 and ES2 should just work fine if you have launched successfully other maps within your project. I didnt mean if it is compiling an AKP separately parallel to your lanching attempt. I meant packagin your project to an APK an intall that to your device. But nevermind, I think slowly but steadily we are getting closer to the core of the problem. I think the problem must be on the level itself. A component that you added, or a setting in the WorldSettings might be able to do that. I would suggest making a failsave copy of your map, and checking the suspicious/newly added elements. Maybe even deleting them, and try to launch the map in between. Just make sure that you have a safe copy of the map!

Transform Reality, LLC,

Have you tried setting up your Android SDK as follows:

110548-10-12-2016+1-03-06+pm.png

You can use Android-21 if you want, I just by default use normally.

Let me know how it goes!

Yes, mine matches the image and it doesn’t change anything i get the same error.

It’s not working still, settings are all set to what you said, I keep getting the same error I have tried to rebuild the build.xml but i get an error.

Have you tried deleting your Intermediate and Saved folders from your project folder? Did you verify that you’re able to package a blank project without any trouble? If so, that would mean it’s limited down to that specific project. After you’ve deleted those folders, try to package again and upload the full error output logs as a .txt file.

Thanks!

funny just answered the same as you 9 days ago…and he answered the same with a pic of his setup :slight_smile: .
by the way I think the issue could be connected to some thing in the level he is trying to deploy directly to the phone. I am quoting him from 8 days ago :
"I have launched another map no problems, "
I have suggested some incompatible component/actor for that happened to me before, lets see maybe deleting the Saved+Intermediate solves the issue.
Transform Reality, LLC, Have you checked the Windows>Developer Tools>Device Profiles> Android for cVars that might cause problems?

I have the answer, what I did to fix this was update my jdk to the most current one. Then I disabled “package game data inside apk”. Did. Full rebuild and was able to launch successfully.