We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a121597 commit a2b827eCopy full SHA for a2b827e
src/Xamarin.Android.Build.Tasks/Tasks/Legacy/ValidateJavaVersion.cs
@@ -58,8 +58,14 @@ Version GetJavaVersionForFramework ()
58
59
Version GetJavaVersionForBuildTools ()
60
{
61
+ string buildToolsVersionString = AndroidSdkBuildToolsVersion;
62
+ if (buildToolsVersionString != null) {
63
+ int index = buildToolsVersionString.IndexOf ('-');
64
+ if (index != -1)
65
+ buildToolsVersionString = buildToolsVersionString.Substring (0, index);
66
+ }
67
Version buildTools;
- if (!Version.TryParse (AndroidSdkBuildToolsVersion, out buildTools)) {
68
+ if (!Version.TryParse (buildToolsVersionString, out buildTools)) {
69
return Version.Parse (LatestSupportedJavaVersion);
70
}
71
if (buildTools >= new Version (24, 0, 1))
0 commit comments