From 95584415a375bc7d232db4eb343bcdc985df1ace Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 24 Aug 2021 08:09:28 -0500 Subject: [PATCH] [Xamarin.Android.Build.Tasks] fix XA0031 message (#6225) Testing latest xamarin-android/main, I got the error: error XA0031: Java SDK 11.0 or above is required when using ``. This seems out of date, we should just say `.NET 6 or higher` instead. I made a new resource key for this. --- .../Properties/Resources.resx | 7 ++++++- .../Properties/xlf/Resources.cs.xlf | 10 ++++++++-- .../Properties/xlf/Resources.de.xlf | 10 ++++++++-- .../Properties/xlf/Resources.es.xlf | 10 ++++++++-- .../Properties/xlf/Resources.fr.xlf | 10 ++++++++-- .../Properties/xlf/Resources.it.xlf | 10 ++++++++-- .../Properties/xlf/Resources.ja.xlf | 10 ++++++++-- .../Properties/xlf/Resources.ko.xlf | 10 ++++++++-- .../Properties/xlf/Resources.pl.xlf | 10 ++++++++-- .../Properties/xlf/Resources.pt-BR.xlf | 10 ++++++++-- .../Properties/xlf/Resources.ru.xlf | 10 ++++++++-- .../Properties/xlf/Resources.tr.xlf | 10 ++++++++-- .../Properties/xlf/Resources.zh-Hans.xlf | 10 ++++++++-- .../Properties/xlf/Resources.zh-Hant.xlf | 10 ++++++++-- .../Tasks/ValidateJavaVersion.cs | 2 +- 15 files changed, 111 insertions(+), 28 deletions(-) diff --git a/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx b/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx index 2dbf81c243b..0f6f3179f20 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx +++ b/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx @@ -181,7 +181,12 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` + + + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf index 79faa2870d6..13ef6cb613c 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější. + Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf index e9592d27a7d..a1b53d9e7a2 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich. + Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf index d9dd1dea013..8ac388b5cf4 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - Se requiere el SDK de Java {0} o posterior cuando se use {1}. + Se requiere el SDK de Java {0} o posterior cuando se use {1}. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf index 9767bcdf649..f02f89f21fe 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}. + Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf index 388946ecc24..cfd2efe990f 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - Quando si usa {1}, è richiesto Java SDK {0} o versione successiva. + Quando si usa {1}, è richiesto Java SDK {0} o versione successiva. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf index f5f8c61be8c..62d5cce5c2e 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - {1} を使用するときには、Java SDK {0} 以上が必要です。 + {1} を使用するときには、Java SDK {0} 以上が必要です。 {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf index fb37c7824b8..5c8bea29ca4 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - {1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다. + {1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf index 58ea4ac401b..177bffa32d6 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy. + W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pt-BR.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pt-BR.xlf index 971964540da..ecc94a37d70 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pt-BR.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pt-BR.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - O SDK do Java {0} ou superior é necessário ao usar {1}. + O SDK do Java {0} ou superior é necessário ao usar {1}. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf index 4a484ee6c76..00131e9ed30 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - При использовании компонента {1} требуется пакет SDK для Java как минимум версии {0}. + При использовании компонента {1} требуется пакет SDK для Java как минимум версии {0}. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf index 74f239a6816..03ea3c79894 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - {1} kullanılırken Java SDK {0} veya üzeri bir sürüm gerekir. + {1} kullanılırken Java SDK {0} veya üzeri bir sürüm gerekir. {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hans.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hans.xlf index be454d9638e..55506190d29 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hans.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hans.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - 使用 {1} 时需要 Java SDK {0} 或更高版本。 + 使用 {1} 时需要 Java SDK {0} 或更高版本。 {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hant.xlf b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hant.xlf index 5564ddd4b1c..19ebdb9042d 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hant.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.zh-Hant.xlf @@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. {0} - The error message returned by the AAPT or AAPT2 tool + + Java SDK {0} or above is required when using .NET 6 or higher. + Java SDK {0} or above is required when using .NET 6 or higher. + +{0} - The Java SDK version number + '{0}' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag Java SDK {0} or above is required when using {1}. - 使用 {1} 時,需要 Java SDK {0} 或更高版本。 + 使用 {1} 時,需要 Java SDK {0} 或更高版本。 {0} - The Java SDK version number -{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `<Project Sdk="Xamarin.Android.Sdk">` +{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` Java SDK {0} or above is required when using Android SDK Build-Tools {1}. diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/ValidateJavaVersion.cs b/src/Xamarin.Android.Build.Tasks/Tasks/ValidateJavaVersion.cs index b8be0d2857d..7914b9d972e 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/ValidateJavaVersion.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/ValidateJavaVersion.cs @@ -79,7 +79,7 @@ protected virtual bool ValidateJava (string javaExe, Regex versionRegex) if (versionNumber != null) { Log.LogMessage (MessageImportance.Normal, $"Found Java SDK version {versionNumber}."); if (versionNumber < required) { - Log.LogCodedError ("XA0031", Properties.Resources.XA0031, required, "``"); + Log.LogCodedError ("XA0031", Properties.Resources.XA0031_NET, required); } var latest = Version.Parse (LatestSupportedJavaVersion); if (versionNumber > latest) {