Skip to content

Commit c09f505

Browse files
[Xamarin.Android.Build.Tasks] include openjdk link in error messages (#6289)
Context: https://aka.ms/msopenjdk The `XA0031` error text doesn't include a JDK download link. Improve the error message by providing a link to https://aka.ms/msopenjdk.
1 parent 3663ccd commit c09f505

File tree

14 files changed

+69
-41
lines changed

14 files changed

+69
-41
lines changed

src/Xamarin.Android.Build.Tasks/Properties/Resources.resx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,15 @@ In this message, the phrase "should not be reached" means that this error messag
178178
<comment>The abbreviation "JDK" should not be translated.</comment>
179179
</data>
180180
<data name="XA0031" xml:space="preserve">
181-
<value>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</value>
181+
<value>Java SDK {0} or above is required when using {1}.
182+
Download the latest JDK at: https://aka.ms/msopenjdk
183+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</value>
182184
<comment>
183185
{0} - The Java SDK version number
184186
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</comment>
185187
</data>
186188
<data name="XA0031_NET" xml:space="preserve">
187-
<value>Java SDK {0} or above is required when using .NET 6 or higher.</value>
189+
<value>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</value>
188190
<comment>
189191
{0} - The Java SDK version number</comment>
190192
</data>

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">Se requiere el SDK de Java {0} o posterior cuando se use {1}.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">Quando si usa {1}, è richiesto Java SDK {0} o versione successiva.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">{1} を使用するときには、Java SDK {0} 以上が必要です。</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">{1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy.</target>
167169
<note>
168170
{0} - The Java SDK version number

src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pt-BR.xlf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
3030
<trans-unit id="XA0031_NET">
31-
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
32-
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
31+
<source>Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</source>
32+
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher. Download the latest JDK at: https://aka.ms/msopenjdk</target>
3333
<note>
3434
{0} - The Java SDK version number</note>
3535
</trans-unit>
@@ -162,7 +162,9 @@ In this message, the phrase "should not be reached" means that this error messag
162162
<note>The abbreviation "JDK" should not be translated.</note>
163163
</trans-unit>
164164
<trans-unit id="XA0031">
165-
<source>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</source>
165+
<source>Java SDK {0} or above is required when using {1}.
166+
Download the latest JDK at: https://aka.ms/msopenjdk
167+
Note: the Android Designer is incompatible with Java SDK 11.0: https://aka.ms/vs2019-and-jdk-11</source>
166168
<target state="needs-review-translation">O SDK do Java {0} ou superior é necessário ao usar {1}.</target>
167169
<note>
168170
{0} - The Java SDK version number

0 commit comments

Comments
 (0)