x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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.google.android.gms.common.api.GoogleApiClient;
 LogPlayLevel: UnrealBuildTool:     [javac]                                         ^
 LogPlayLevel: UnrealBuildTool:     [javac]   symbol:   class GoogleApiClient
 LogPlayLevel: UnrealBuildTool:     [javac]   location: package com.google.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.google.android.gms.common.GooglePlayServicesUtil;
 LogPlayLevel: UnrealBuildTool:     [javac]                                     ^
 LogPlayLevel: UnrealBuildTool:     [javac]   symbol:   class GooglePlayServicesUtil
 LogPlayLevel: UnrealBuildTool:     [javac]   location: package com.google.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.google.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:\NVPACK\android-sdk-windows\tools\ant\build.xml:716: The following error occurred while executing this line:
 LogPlayLevel: UnrealBuildTool: C:\NVPACK\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
Product Version: UE 4.13
Tags:
more ▼

asked Nov 07 '16 at 01:47 AM in Packaging & Deployment

avatar image

Alpha Cats
109 7 12 26

avatar image kornel.l.varga Nov 07 '16 at 08:09 AM

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?

avatar image kornel.l.varga Nov 07 '16 at 08:15 AM

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

alt text

screen.jpg (841.0 kB)
avatar image Alpha Cats Nov 07 '16 at 09:44 AM

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.

avatar image Alpha Cats Nov 07 '16 at 02:48 PM

Android SDK is set up the same as yours. alt text

env_var.png (26.4 kB)
avatar image kornel.l.varga Nov 07 '16 at 03:27 PM

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 user&system vars plus the ones you are pointing at form Unreal?

avatar image Alpha Cats Nov 07 '16 at 06:13 PM

How do I go about syncing java versions in UE4?

avatar image Alpha Cats Nov 07 '16 at 06:27 PM

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.

avatar image kornel.l.varga Nov 07 '16 at 07:58 PM

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.

avatar image Alpha Cats Nov 07 '16 at 08:24 PM

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.

alt text

 lt text
 
 
setting_sdk.png (100.1 kB)
avatar image kornel.l.varga Nov 08 '16 at 08:44 AM

sorry to hear that :( .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)

avatar image Alpha Cats Nov 08 '16 at 03:09 PM

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?

avatar image kornel.l.varga Nov 09 '16 at 11:06 AM

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!

avatar image Alpha Cats Nov 16 '16 at 05:41 PM

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.

avatar image kornel.l.varga Nov 07 '16 at 03:33 PM

about the system and user vars, it should not matter as long as you are building logged in as Eric, 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)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Nov 16 '16 at 11:45 PM

avatar image

Alpha Cats
109 7 12 26

avatar image kornel.l.varga Nov 17 '16 at 08:34 AM

nice! glad it works now !

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Transform Reality, LLC,

Have you tried setting up your Android SDK as follows:

Android SDK

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

Let me know how it goes!

more ▼

answered Nov 10 '16 at 09:55 PM

avatar image Alpha Cats Nov 16 '16 at 05:40 PM

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

avatar image Samantha Sutton ♦♦ STAFF Nov 16 '16 at 06:24 PM

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!

avatar image kornel.l.varga Nov 16 '16 at 10:42 PM

funny just answered the same as you Samantha 9 days ago..and he answered the same with a pic of his setup :) .
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?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question