Unable to Build and Run

Hi,

I’ve been able to Build and Run onto my Android phone in the past but I now get the following error when trying to deploy.

FormatException: Input string was not in the correct format
System.Int32.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int32.cs:629)
System.Convert.ToInt32 (System.String value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1270)
UnityEditor.Android.AndroidDeviceInfo.get_SDKVersion ()
UnityEditor.Android.AndroidDeviceInfo.HasSDKSupport (Int32 minimumVersion)
UnityEditor.Android.PostProcessor.Tasks.CheckDevice.FindDevice (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.Tasks.CheckDevice.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (BuildOptions options, BuildTargetGroup targetGroup, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:87)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

I’ve updated SDKs, build tools etc and cannot seem to get past this. I can build an apk and side load it and that works, just can’t build and run.

My phone is running Android 8.1.0.

Thanks

Me too! after solving other issues i encountered that never happened before i now get this also… very similar
Error building Player: FormatException: Input string was not in the correct format
etc