Download

[Solved] New, Practically Blank Project Won't Build For Android?

I’m very confused about this, I can’t package my projects for Android. I’ve followed all the setup steps rigidly. I’m trying to build a simple development version of a game that consists of nothing but an Empty GameMode, a Pawn with a Camera and a Touch interface asset. No code whatsoever, and no assets other than these three (and a map, of course).

Whenever I try and package the game for Android, I get the following log. This is in 4.7.4



MainFrameActions: Packaging (Android (DXT)): CommandUtils.Run: Run: Took 1.1700669s to run UnrealPak.exe, ExitCode=0
MainFrameActions: Packaging (Android (DXT)): Project.CreatePak: UnrealPak Done *******
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeWriteAllLines: SafeWriteAllLines C:\Users\JamesB\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Unreal+Engine+4.7\FinalCopy_NonUFSFiles.txt
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeWriteAllLines: SafeWriteAllLines C:\Users\JamesB\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Unreal+Engine+4.7\FinalCopy_UFSFiles.txt
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeDeleteFile: SafeDeleteFile C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\Manifest_NonUFSFiles.txt
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeCreateDirectory: SafeCreateDirectory C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\Engine\Build
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeCopyFile: SafeCopyFile C:\Program Files\Unreal Engine\4.7\Engine\Build\build.properties C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\Engine\Build\build.properties
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeCopyFile: SafeCopyFile C:\Program Files\Unreal Engine\4.7\Engine\Intermediate\UAT\Android_DXT\UE4CommandLine.txt C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\UE4CommandLine.txt
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeWriteAllLines: SafeWriteAllLines C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\Manifest_NonUFSFiles.txt
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeFileExists: SafeFileExists C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\Manifest_NonUFSFiles.txt=True
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeCopyFile: SafeCopyFile C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\Manifest_NonUFSFiles.txt C:\Users\JamesB\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Unreal+Engine+4.7\Manifest
MainFrameActions: Packaging (Android (DXT)): _NonUFSFiles.txt
MainFrameActions: Packaging (Android (DXT)): Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND COMPLETED **********
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeFileExists: SafeFileExists C:\Users\JamesB\Documents\Unreal Projects\PawnTest\PawnTest.uproject=True
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeFileExists: SafeFileExists C:\Users\JamesB\Documents\Unreal Projects\PawnTest\PawnTest.uproject=True
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeCreateDirectory: SafeCreateDirectory C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeCreateDirectory: SafeCreateDirectory C:\Users\JamesB\Desktop\TestBuild\Android_DXT
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: Deployment Context **************
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: ArchiveDirectory = C:\Users\JamesB\Desktop\TestBuild\Android_DXT
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: RawProjectPath = C:\Users\JamesB\Documents\Unreal Projects\PawnTest\PawnTest.uproject
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: IsCodeBasedUprojectFile = False
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: DedicatedServer = False
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: Stage = True
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: StageTargetPlatform = Android
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: LocalRoot = C:\Program Files\Unreal Engine\4.7
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: ProjectRoot = C:\Users\JamesB\Documents\Unreal Projects\PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: PlatformDir = Android
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: StageProjectRoot = C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: ShortProjectName = PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: StageDirectory = C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: SourceRelativeProjectRoot = PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: RelativeProjectRootForStage = PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: RelativeProjectRootForUnrealPak = PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: ProjectArgForCommandLines = ../../../PawnTest/PawnTest.uproject
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: RuntimeRootDir = C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: RuntimeProjectRootDir = C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT\PawnTest
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: UProjectCommandLineArgInternalRoot = ../../../
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: PakFileInternalRoot = ../../../
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: UnrealFileServerInternalRoot = ../../../
MainFrameActions: Packaging (Android (DXT)): Project.LogDeploymentContext: End Deployment Context **************
MainFrameActions: Packaging (Android (DXT)): Project.Package: ********** PACKAGE COMMAND STARTED **********
MainFrameActions: Packaging (Android (DXT)): AndroidPlatform.Package: BaseApkName = C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Binaries\Android\PawnTest.apk
MainFrameActions: Packaging (Android (DXT)): AndroidPlatform.Package: Creating C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT.obb from C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Saved\StagedBuilds\Android_DXT
MainFrameActions: Packaging (Android (DXT)): <>c__DisplayClass1.<Package>b__0: [1/1] Adding PawnTest/ to OBB
MainFrameActions: Packaging (Android (DXT)): <>c__DisplayClass1.<Package>b__0: [2/2] Adding PawnTest/Content/ to OBB
MainFrameActions: Packaging (Android (DXT)): <>c__DisplayClass1.<Package>b__0: [3/3] Adding PawnTest/Content/Paks/ to OBB
MainFrameActions: Packaging (Android (DXT)): <>c__DisplayClass1.<Package>b__0: [4/4] Adding PawnTest/Content/Paks/PawnTest-Android_DXT.pak to OBB
MainFrameActions: Packaging (Android (DXT)): InternalUtils.SafeFileExists: SafeFileExists C:\Program Files\Unreal Engine\4.7\Engine\Binaries\Android\UE4Game-armv7-es2.apk=True
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.MakeApk: 
MainFrameActions: Packaging (Android (DXT)): ====08/04/2015 14:47:27====PREPARING TO MAKE APK=================================================================
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): Building Java with SDK API level 'android-19'
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.CheckDependencies: C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Binaries\Android\PawnTest-armv7-es2.apk is out of date due to newer input file C:\Program Files\Unreal Engine\4.7\Engine\Binaries\Android\UE4Game-armv7-es2.so
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.MakeApk: Performing complete package - wiping C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Intermediate/Android/APK, except for predexedLibs
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.MakeApk: bPackageDataInsideApk = False
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.UpdateProjectProperties: 
MainFrameActions: Packaging (Android (DXT)): ====08/04/2015 14:47:28====UPDATING BUILD CONFIGURATION FILES====================================================
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Updating project.properties, local.properties, and build.xml...
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): The system cannot find the path specified.
MainFrameActions: Packaging (Android (DXT)): UEDeployAndroid.MakeApk: 
MainFrameActions: Packaging (Android (DXT)): ====08/04/2015 14:47:29====PREPARING NATIVE CODE=================================================================
MainFrameActions: Packaging (Android (DXT)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (DXT)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (DXT)): Program.Main: ERROR: Exception in mscorlib: Could not find file 'C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Intermediate/Android/APK/libs/armeabi-v7a/libUE4.so'.
MainFrameActions: Packaging (Android (DXT)): Stacktrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
MainFrameActions: Packaging (Android (DXT)):    at System.IO.FileSystemInfo.set_Attributes(FileAttributes value)
MainFrameActions: Packaging (Android (DXT)):    at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: Packaging (Android (DXT)):    at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: Packaging (Android (DXT)):    at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (DXT)):    at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (DXT)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (DXT)):    at BuildCommand.Execute()
MainFrameActions: Packaging (Android (DXT)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (DXT)):    at AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Android (DXT)):    at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (DXT)):    at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Android (DXT)):    at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (DXT)): Program.Main: ERROR: Could not find file 'C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Intermediate/Android/APK/libs/armeabi-v7a/libUE4.so'.
MainFrameActions: Packaging (Android (DXT)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (DXT)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Android (DXT)): Domain_ProcessExit
MainFrameActions: Packaging (Android (DXT)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (DXT)): copying UAT log files...
MainFrameActions: Packaging (Android (DXT)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (DXT)): BUILD FAILED


Would answerhub this, but need a response quickly because I can’t move on much until this is worked out.

Is it C++ project? It seems this file is failed to be generated:

C:\Users\JamesB\Documents\Unreal Projects\PawnTest\Intermediate/Android/APK/libs/armeabi-v7a/libUE4.so

Note: .so in Linux (and Unix-like OSes overall) is equivalent of .dll

It’s failing to package, which means that something with your SDK is not set up properly. How did you install the Android SDK/Java/etc? TADP installer that we provide?

Hi TheJamsh!

Ok, I have a couple of questions. Are you able to package this same project for any other texture compression, and are you able to package any of the learning projects at all? Did you install the TADP that comes with the engine, or did you get the newest download from the Nvidia site? If it is the latter, the documentation is slightly off and here is a thread with more recent info. This is mainly relevant if the device you are trying to package for is something very new, like the Shield Tablet.

I am seeing a lot of

errors, and that usually indicates SDK stuff. My advice is to see if you can package, say, Tappy Chicken for development and ETC1. If that fails, it is almost certainly an SDK setup issue. If Tappy package succeeds, it’s usually a project specific problem.

Have you recently added any other SDKs than the Android one, like maybe GearVR?

The DXT compression is one we don’t see very often; here is an AnswerHub thread with a user experiencing a kinda similar problem using the DXT compression, but their issue ended up being related to their specific phone and not a build failure.

Further, just in case, here’s the Mobile Dev Troubleshooting Guide. If you discover anything specific that isn’t on there, please add it to the list when you can.

Good luck!

@Shadowriver - Nope, Blueprint only project, with only three files.

The reason I’m using DXT Compression is because we’re using nVidia Shield, and eventually we’re going to switch to the Desktop Renderer. Coming from Desktop development this just seemed like the right option :wink:

I’m sure I installed the Android SDK as the steps told me to, but I’ll check again. I think I grabbed the latest SDK at the time (whatever that was). I’ll try re-installing based on the thread you just linked. All I know is, I just want to be able to deploy to nVidia Shield - and only that device. I’m not very savvy when it comes to Mobile/Android dev… seems like nightmare work.

I just tried packaging for ETC1 - same error again.

Got it, installed TADP 4.01 - seems to all be working now. Kind of surprised it didn’t to begin with, never changed any of the install settings. Nevermind!

Hooray! I am very glad it’s all straight. If you would be so kind as to close out your corresponding AH thread, you’ll be my best friend today. :smiley:

Sure thing :slight_smile: