From 658db25e44fec14c93568dee2cef15f1e5f9ec33 Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Tue, 31 Aug 2021 16:47:58 -0400 Subject: [PATCH] [Xamarin.Android.Build.Tasks] Improve XA0031 error message (#6252) Context: https://aka.ms/vs2019-and-jdk-11 Context: https://github.com/xamarin/xamarin-android/wiki/JDK-11-Warning The XA0031 error will be generated when `$(TargetFrameworkVersion)`=v12.0 and JDK 1.8 is detected, as JDK-11 is required for API-31; see also 8140991e, 26770284. The problem is the XA0031 error message: error XA0031: Java SDK 11.0 or above is required when using $(TargetFrameworkVersion) v12.0. The error message implies that error can be fixed by installing JDK-11. Which is correct: the XA0031 error *can* be fixed by installing JDK-11. The problem is that *once JDK-11 is installed*, the Android Designer breaks, as the Android Designer, as shipped in Visual Studio 16.11 and Visual Studio for Mac 8.10, only works with JDK 1.8. This can easily result in a scenario where a customer wants to use API-31, installs JDK-11, and then can no longer use the Designer. (This could be mentioned in the Release Notes, but historically nobody reads the release notes.) Update the XA0031 error message so that this implicit dependency is made explicit: error XA0031: Java SDK 11.0 or above is required when using $(TargetFrameworkVersion) v12.0. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 provides more details. --- src/Xamarin.Android.Build.Tasks/Properties/Resources.resx | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf | 2 +- .../Properties/xlf/Resources.pt-BR.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf | 2 +- src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf | 2 +- .../Properties/xlf/Resources.zh-Hans.xlf | 2 +- .../Properties/xlf/Resources.zh-Hant.xlf | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx b/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx index 0f6f3179f20..182980e7087 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx +++ b/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx @@ -178,7 +178,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 {0} - The Java SDK version number {1} - The feature being used: `$(TargetFrameworkVersion) v10.0` 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 13ef6cb613c..5752b64081b 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější. {0} - The Java SDK version number 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 a1b53d9e7a2..8e7befe240f 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich. {0} - The Java SDK version number 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 8ac388b5cf4..1bd116cfdaa 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 Se requiere el SDK de Java {0} o posterior cuando se use {1}. {0} - The Java SDK version number 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 f02f89f21fe..edf9fa9ae77 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}. {0} - The Java SDK version number 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 cfd2efe990f..dcd4ae7eca3 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 Quando si usa {1}, è richiesto Java SDK {0} o versione successiva. {0} - The Java SDK version number 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 62d5cce5c2e..1311f9f54ee 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 {1} を使用するときには、Java SDK {0} 以上が必要です。 {0} - The Java SDK version number 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 5c8bea29ca4..5b70654e30f 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 {1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다. {0} - The Java SDK version number 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 177bffa32d6..1259b7858fa 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy. {0} - The Java SDK version number 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 ecc94a37d70..62447bbad71 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 @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 O SDK do Java {0} ou superior é necessário ao usar {1}. {0} - The Java SDK version number 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 00131e9ed30..ae898f88ba3 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 При использовании компонента {1} требуется пакет SDK для Java как минимум версии {0}. {0} - The Java SDK version number 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 03ea3c79894..9b8be38d712 100644 --- a/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf +++ b/src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.tr.xlf @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 {1} kullanılırken Java SDK {0} veya üzeri bir sürüm gerekir. {0} - The Java SDK version number 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 55506190d29..95aebdc7851 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 @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 使用 {1} 时需要 Java SDK {0} 或更高版本。 {0} - The Java SDK version number 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 19ebdb9042d..6d171a0c17b 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 @@ -162,7 +162,7 @@ In this message, the phrase "should not be reached" means that this error messag The abbreviation "JDK" should not be translated. - Java SDK {0} or above is required when using {1}. + Java SDK {0} or above is required when using {1}. Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11 使用 {1} 時,需要 Java SDK {0} 或更高版本。 {0} - The Java SDK version number