[4.2] Can't package mobile samples

Hello. I’ve updated to 4.2 and I wanted to test if Android samples improved compatibility with my phone… and they don’t even finish packaging. I’ve tested and Mobile. Both of them show these errors in the log:

MainFrameActions: Packaging (Android (ATC)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ATC)): Program.: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ATC)): Program.: ERROR: Exception in AutomationTool: No files found to deploy for C:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64 with wildcard UE4Game-Win64-Shipping.exe and exclusions 
MainFrameActions: Packaging (Android (ATC)): Stacktrace:    en DeploymentContext.StageFiles(StagedFileType 
MainFrameActions: Packaging (Android (ATC)): FileType, String InPath, String Wildcard, Boolean bRecursive, String[] ExcludeWildcard, String NewPath, Boolean bAllowNone, Boolean bRemap, String NewName)
MainFrameActions: Packaging (Android (ATC)):    en BaseWinPlatform.StageExecutable(String Ext, DeploymentContext SC, String InPath, String Wildcard, Boolean bRecursive, String[] ExcludeWildcard, String NewPath, Boolean bAllowNone, StagedFileType InStageFileType, String NewName)
MainFrameActions: Packaging (Android (ATC)):    en BaseWinPlatform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC)
MainFrameActions: Packaging (Android (ATC)):    en Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC)
MainFrameActions: Packaging (Android (ATC)):    en Project.CopyBuildToStagingDirectory(ProjectParams Params)
MainFrameActions: Packaging (Android (ATC)):    en BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (ATC)):    en BuildCommand.Execute()
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.InternalUtils.RunSingleInstance(MainProc , Object Param)
MainFrameActions: Packaging (Android (ATC)):    en AutomationTool.Program.()
MainFrameActions: Packaging (Android (ATC)): Program.: ERROR: No files found to deploy for C:\Program Files\Unreal Engine\4.2\Engine\Binaries\Win64 with wildcard UE4Game-Win64-Shipping.exe and exclusions 
MainFrameActions: Packaging (Android (ATC)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ATC)): Program.: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Android (ATC)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ATC)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ATC)): copying UAT log files...
MainFrameActions: Packaging (Android (ATC)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.

Does anyone know the cause of this? Thanks :slight_smile:

Hi PacoChan,

When you say that you are failing to compile, do you mean that they will not package? and the Mobile sample should be non-code projects, so compiling them in Visual would not be necessary. Can you give me the exact steps and settings you are using when you attempt this?

Thanks,

Yes, I meant package. I just open the project, click on File/Package Project/Android (ATC), and select the folder I want. And it gives those errors in the log. I never had problems with previous versions.

Hi PacoChan,

Unfortunately we have been unable to reproduce this bug. Have you tried removing the folder from your projects, then re-download the files? It may be that a file did not completely download which is causing the disconnect.

Ok, I found the solution. It’s just a stupid mistake. I updated to a new version of Android NDK but I forgot to update the name of the folder in environment variables.

Thanks for your answers guys :slight_smile: