在从Unity 2018.1的版本转换为2018.2.0.b3后,我无法再构建Android应用程序,出现以下错误:
FormatException:输入字符串格式不正确
在切换到最新的beta版本之前,我能够轻松创建一个构建(虽然不是使用gradle,而是使用内部构建系统)。是否有人遇到过这个问题或者可以帮助我解决这个问题?
以下是我收到的完整消息:
FormatException: Input string was not in a correct format.
System.Version+VersionResult.SetFailure (System.Version+ParseFailureKind failure, System.String argument) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Version.TryParseComponent (System.String component, System.String componentName, System.Version+VersionResult& result, System.Int32& parsedComponent) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Version.TryParseVersion (System.String version, System.Version+VersionResult& result) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Version.Parse (System.String input) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Version..ctor (System.String version) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
UnityEditor.Android.Utils.ParseVersion (System.String version) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.AndroidComponentProperties.get_PackageRevision () (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.AndroidComponentProperties.GetPackageRevision (System.String directory) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.AndroidSDKTools.BuildToolsVersion () (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKBuildToolsDetector.GetVersion (UnityEditor.Android.AndroidSDKTools sdkTools, UnityEditor.Android.AndroidJavaTools javaTools) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector.Detect (UnityEditor.Android.AndroidSDKTools sdkTools, UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.ProgressHandler onProgress) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Int32 minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTarget target) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTarget target) (at <a03b4d5bdb8646db9fef40240e67bcbf>:0)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:106)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)