Skip to content

Commit

Permalink
[Xamarin.Android.Build.Tasks] fix XA0031 message (#6225)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonathanpeppers authored Aug 24, 2021
1 parent e722825 commit 9558441
Show file tree
Hide file tree
Showing 15 changed files with 111 additions and 28 deletions.
7 changes: 6 additions & 1 deletion src/Xamarin.Android.Build.Tasks/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ In this message, the phrase "should not be reached" means that this error messag
<value>Java SDK {0} or above is required when using {1}.</value>
<comment>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</comment>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</comment>
</data>
<data name="XA0031_NET" xml:space="preserve">
<value>Java SDK {0} or above is required when using .NET 6 or higher.</value>
<comment>
{0} - The Java SDK version number</comment>
</data>
<data name="XA0032" xml:space="preserve">
<value>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</value>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější.</target>
<target state="needs-review-translation">Když se používá {1}, vyžaduje se sada Java SDK {0} nebo novější.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich.</target>
<target state="needs-review-translation">Bei Verwendung von {1} ist Java SDK {0} oder höher erforderlich.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">Se requiere el SDK de Java {0} o posterior cuando se use {1}.</target>
<target state="needs-review-translation">Se requiere el SDK de Java {0} o posterior cuando se use {1}.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}.</target>
<target state="needs-review-translation">Le SDK Java {0} ou supérieur est nécessaire pour utiliser {1}.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">Quando si usa {1}, è richiesto Java SDK {0} o versione successiva.</target>
<target state="needs-review-translation">Quando si usa {1}, è richiesto Java SDK {0} o versione successiva.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">{1} を使用するときには、Java SDK {0} 以上が必要です。</target>
<target state="needs-review-translation">{1} を使用するときには、Java SDK {0} 以上が必要です。</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">{1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다.</target>
<target state="needs-review-translation">{1}을(를) 사용하는 경우 Java SDK {0} 이상이 필요합니다.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy.</target>
<target state="needs-review-translation">W przypadku używania funkcji {1} jest wymagany zestaw Java SDK {0} lub nowszy.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">O SDK do Java {0} ou superior é necessário ao usar {1}.</target>
<target state="needs-review-translation">O SDK do Java {0} ou superior é necessário ao usar {1}.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
10 changes: 8 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Properties/xlf/Resources.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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.</target>
<note>{0} - The error message returned by the AAPT or AAPT2 tool</note>
</trans-unit>
<trans-unit id="XA0031_NET">
<source>Java SDK {0} or above is required when using .NET 6 or higher.</source>
<target state="new">Java SDK {0} or above is required when using .NET 6 or higher.</target>
<note>
{0} - The Java SDK version number</note>
</trans-unit>
<trans-unit id="XA0125">
<source>'{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.
Expand Down Expand Up @@ -157,10 +163,10 @@ In this message, the phrase "should not be reached" means that this error messag
</trans-unit>
<trans-unit id="XA0031">
<source>Java SDK {0} or above is required when using {1}.</source>
<target state="translated">При использовании компонента {1} требуется пакет SDK для Java как минимум версии {0}.</target>
<target state="needs-review-translation">При использовании компонента {1} требуется пакет SDK для Java как минимум версии {0}.</target>
<note>
{0} - The Java SDK version number
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0` or `&lt;Project Sdk="Xamarin.Android.Sdk"&gt;`</note>
{1} - The feature being used: `$(TargetFrameworkVersion) v10.0`</note>
</trans-unit>
<trans-unit id="XA0032">
<source>Java SDK {0} or above is required when using Android SDK Build-Tools {1}.</source>
Expand Down
Loading

0 comments on commit 9558441

Please sign in to comment.