Skip to content

Commit b99680d

Browse files
[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 `<Project Sdk="Xamarin.Android.Sdk">`. This seems out of date, we should just say `.NET 6 or higher` instead. I made a new resource key for this.
1 parent 460a6e4 commit b99680d

15 files changed

+111
-28
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ In this message, the phrase "should not be reached" means that this error messag
181181
<value>Java SDK {0} or above is required when using {1}.</value>
182182
<comment>
183183
{0} - The Java SDK version number
184-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</comment>
184+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</comment>
185+
</data>
186+
<data name="XA0031_NET" xml:space="preserve">
187+
<value>Java SDK {0} or above is required when using .NET 6 or higher.</value>
188+
<comment>
189+
{0} - The Java SDK version number</comment>
185190
</data>
186191
<data name="XA0032" xml:space="preserve">
187192
<value>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</value>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější.</target>
166+
<target state="needs-review-translation">Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich.</target>
166+
<target state="needs-review-translation">Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">Se requiere el SDK de Java {0} o posterior cuando se use {1}.</target>
166+
<target state="needs-review-translation">Se requiere el SDK de Java {0} o posterior cuando se use {1}.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}.</target>
166+
<target state="needs-review-translation">Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">Quando si usa {1}, è richiesto Java SDK {0} o versione successiva.</target>
166+
<target state="needs-review-translation">Quando si usa {1}, è richiesto Java SDK {0} o versione successiva.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">{1} を使用するときには、Java SDK {0} 以上が必要です。</target>
166+
<target state="needs-review-translation">{1} を使用するときには、Java SDK {0} 以上が必要です。</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">{1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다.</target>
166+
<target state="needs-review-translation">{1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy.</target>
166+
<target state="needs-review-translation">W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ This error is likely caused by an issue with the AndroidManifest.xml file or an
2727
This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.</target>
2828
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
2929
</trans-unit>
30+
<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>
33+
<note>
34+
{0} - The Java SDK version number</note>
35+
</trans-unit>
3036
<trans-unit id="XA0125">
3137
<source>'{0}' is using a deprecated debug information level.
3238
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
157163
</trans-unit>
158164
<trans-unit id="XA0031">
159165
<source>Java SDK {0} or above is required when using {1}.</source>
160-
<target state="translated">O SDK do Java {0} ou superior é necessário ao usar {1}.</target>
166+
<target state="needs-review-translation">O SDK do Java {0} ou superior é necessário ao usar {1}.</target>
161167
<note>
162168
{0} - The Java SDK version number
163-
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
169+
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
164170
</trans-unit>
165171
<trans-unit id="XA0032">
166172
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>

0 commit comments

Comments
 (0)