Android build started failing suddenly, even older versions won’t build anymore which worked fine.
UnrealBuildTool Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal).
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info).
at UnrealBuildTool.AndroidToolChain.GetLargestApiLevel(String[] ApiLevels).
at UnrealBuildTool.Android.UEDeployAndroid.GetSdkApiLevel().
at UnrealBuildTool.Android.UEDeployAndroid.MakeAPK(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution).
at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution).
at UnrealBuildTool.Android.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget).
at UnrealBuildTool.UnrealBuildTool.Main(String[] Arguments).
BuildCommand.Execute: ERROR: BUILD FAILED.
Program.Main: ERROR: AutomationTool terminated with exception:.
Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:2): P:\Unreal Engine\4.2\Engine\Binaries\DotNET\UnrealBuildTool.exe Summer2014 Android Development “W:\Unreal Projects\Summer2014\Summer2014.uproject” -noxge -rocket. See logfile for details: ‘UnrealBuildTool.txt’ .
Stacktrace: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options).
at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName).
at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity).
at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNonUnity, Boolean InForceUnity).
at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL).
at BuildCookRun.DoBuildCookRun(ProjectParams Params).
at BuildCommand.Execute().
at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary
1 Commands).
at AutomationTool.Automation.Process(String[] CommandLine).
at AutomationTool.Program.MainProc(Object Param).
at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param).
at AutomationTool.Program.Main().
Program.Main: ERROR: Command failed (Result:2): P:\Unreal Engine\4.2\Engine\Binaries\DotNET\UnrealBuildTool.exe Summer2014 Android Development “W:\Unreal Projects\Summer2014\Summer2014.uproject” -noxge -rocket. See logfile for details: ‘UnrealBuildTool.txt’ .
Program.Main: AutomationTool exiting with ExitCode=1