Skip to content

Commit cccecca

Browse files
committed
Changed XA1005 from an Error to a Warning
1 parent 8e66df2 commit cccecca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Documentation/guides/messages/xa1005.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Compiler Error XA1005
1+
# Compiler Warning XA1005
22

33
The minSdkVersion (minSdk) is greater than targetSdkVersion.
44

src/Xamarin.Android.Build.Tasks/Tasks/CheckGoogleSdkRequirements.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ public override bool Execute ()
3333

3434
//We should throw a warning if the targetSdkVersion is lower than compileSdkVersion(TargetFrameworkVersion).
3535
if (targetSdk < compileSdk) {
36-
Log.LogCodedWarning ("XA1003", $"You are building agasinst version of Android ({compileSdk}) that is more recent than your targetSdkVersion specifies ({targetSdk}). Set your targetSdkVersion to the highest version of Android available to match your TargetFrameworkVersion ({compileSdk}).");
36+
Log.LogCodedWarning ("XA1003", $"You are building against version of Android ({compileSdk}) that is more recent than your targetSdkVersion specifies ({targetSdk}). Set your targetSdkVersion to the highest version of Android available to match your TargetFrameworkVersion ({compileSdk}).");
3737
}
3838
//We should throw an error if the compileSdkVersion(TargetFrameworkVersion) is lower than targetSdkVersion.
3939
if (compileSdk < targetSdk) {
4040
Log.LogCodedError ("XA1004", $"The TargetFrameworkVersion ({compileSdk}) must not be lower than targetSdkVersion ({targetSdk})");
4141
}
4242

43-
//We should throw an error if the minSdkVersion is greater than targetSdkVersion.
43+
//We should throw an error if the minSdkVersion is greater than targetSdkVers1ion.
4444
if (minSdk > targetSdk) {
45-
Log.LogCodedError ("XA1005", $"The minSdkVersion ({minSdk}) is greater than targetSdkVersion. Please change the value such that minSdkVersion is less than or equal to targetSdkVersion ({targetSdk}).");
45+
Log.LogCodedWarning ("XA1005", $"The minSdkVersion ({minSdk}) is greater than targetSdkVersion. Please change the value such that minSdkVersion is less than or equal to targetSdkVersion ({targetSdk}).");
4646
}
4747

4848
return !Log.HasLoggedErrors;

0 commit comments

Comments
 (0)