Can build on 4.11 but not (for Android)

cloned the project, I get an unknown build error in but it packages just fine in 4.11.

Hi.

if you send your logs people can help you better.

from what I’ve read in other on the topic, it said when you see errors like these its a vague android error that isn’t very helpful or telling. But here’s some excerpts:

MainFrameActions: Packaging (Android (All)): UnrealBuildTool:
MainFrameActions: Packaging (Android (All)): UnrealBuildTool: BUILD FAILED
MainFrameActions: Packaging (Android (All)): UnrealBuildTool: D:\android-sdk-windows\tools\ant\build.xml:892: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (All)): UnrealBuildTool: D:\android-sdk-windows\tools\ant\build.xml:894: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (All)): UnrealBuildTool: D:\android-sdk-windows\tools\ant\build.xml:906: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (All)): UnrealBuildTool: D:\android-sdk-windows\tools\ant\build.xml:283: null returned: 2

MainFrameActions: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
MainFrameActions: Packaging (Android (All)): Domain_ProcessExit
MainFrameActions: Packaging (Android (All)): copying UAT log files…
MainFrameActions: Packaging (Android (All)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

just tried .1 - same result

,

I need to see your full error logs as a .txt file attached with your next reply. I’d also like to have a screenshot of your Android SDK settings provided. Please also check and see whether or not .2 has fixed this problem.

Looking forward to hearing back from you, thanks! :slight_smile:

.2 has not fixed the problem,[][1]

94228-output+log.txt (323 KB)

,

  • Did you install the SDKs through the Android SDK Manager?
  • What does your Android SDK (within UE4 > Project Settings) look like?

Here is a link which may help you: [Android Build Failed "Can't find ..\..\[Project]-debug.apk" - Platform & Builds - Epic Developer Community Forums][1]

Android Build Failed "Can't find ..\..\[Project]-debug.apk" - Platform & Builds - Epic Developer Community Forums

I installed through the androidworks shipped with. Tried with the Android SDK manager as well but it screwed everything up, so I uninstalled and re-installed with what ships with the engine. That at least got 4.11 working.

Settings are the same as in 4.11, which work.

failed on .3 as well

4.11 Uses AndroidWorks
Uses CodeWorks

Please run the installer/sdk manager provided with .* versions of the engine. Be sure to tick automatically resolve conflicts. After that, set your settings to point to the new codeworks sdk/ndk location.

yeah tried that. Just to be sure, I tried it again. At least it explains why, when I had originally updated the android sdk it broke 4.11. I have a simple android test, no extra plug-ins or anything, and it still fails to compile.

Shouldn’t you all wait to hear if the answer works before declaring it resolved?

this is not resolved

Hi ,

I cannot verify that there is an issue Packaging to Android from UE4.12 using the following repro steps.

  1. In UE4.12 create a new Mobile/Tablet game, Third Person Blueprint, No Starter Content: Call it something like “Android Test” and close editor
  2. Navigate to your Android Works folder in your UE4 install directory and Launch “CodeWorksforAndroid”

  1. After installing CodeWorksforAndroid be sure to link directories correctly in Project Settings to directories:

  1. In Project Settings>Platform>Android, make sure APKPackaging and GooglePlayServices are writable
  2. Open previously created Third Person Mobile game
  3. Package for Android (All) to a blank folder on the Desktop (Make sure Project name has no unusual characters, spaces, etc.)
  4. Altenatively: Launch Straight onto device to check for Errors in your project
  5. I was able to Launch Straight to device and package and use the installer to install package to Android device: Samsung Galaxy S5 following these repro steps.

CONCLUSION: No bug present preventing UE4.12.3 projects from packaging to an Android device.

The following error points to a problem with your “apache-ant-” link… perhaps it did not get updated or is linked to the old one for UE4.11:

I had done all that, but I’ll go through it all again tonight to see if I missed something and let you know

went through all those steps. NVidia tegra wouldn’t install. Now it wont even try to package, just get the window saying my android development setup is wrong. Can still package in 4.11 though after I reset my sdk directories.

And here’s a stupid question - why are those settings not editor specific? If I set it correctly for I break 4.11 until I reset them.

tried installing it on another machine. Was trying to install it on a windows 7 machine, so I tried a windows 10 machine.

Installed the android stuff, and I go tan error when I tried to build. Then I remembered I didn’t set wish version to install, so I re-installed it and now it won’t try to build at all.

I went through the above steps on a Windows 7 Machine, just so we’re comparing “apples to apples.” Nvidia Tegra must install properly, not optional. You will likely have to uninstall it from your programs using Windows Control Panel, before attempting to reinstall.

I do not see it posted, so here is the official documentation that I followed (Be sure to follow these in order replacing Android Works with Code Works):

[Install the Android SDK][1]

If you set your SDK in project settings for 1 project in UE4.11 and set your SDK to different directories in a different project in UE4.12, the settings should remain for each, without “breaking” Is this not the case?

https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html

I’ve never gotten NVidia Tegra to install and it worked for all previous versions of Unreal. Nvidia Tegra wont install because I do not have Visual Studio Professional, it apparently doesn’t like Community.

So what you are saying is I cannot build to Android on PC unless I purchase additional software? Or stay in 4.11?

Download Nsight Tegra manually (latest version), the version provided by AndroidWorks is not compatible with vs2015 (Community or not).