You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: #6089
We currently have lots of test failures due to the warning:
warning XA1008: The TargetFrameworkVersion (Android API level 30) is lower than the targetSdkVersion (31). Please increase the `$(TargetFrameworkVersion)` or decrease the `android:targetSdkVersion` in the `AndroidManifest.xml` so that the API levels match.
Looking at `Properties\AndroidManifest.xml`, Xamarin.ProjectTools
generated:
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="31" />
This appears to be due to the `GetMaxInstalledPlatform()` method:
https://github.com/xamarin/xamarin-android/blob/1b71da0cd3a44861b006ac41c77a24eedf066281/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/AndroidSdkResolver.cs#L121-L138
I think what happened is:
* #6089 is opened, platform-31 gets installed on many of the CI
machines.
* Future PRs install `platform-31` side-by-side `platform-S`.
And so we ended up with test failures...
To fix this for now, manually delete the `sdk/platform-31` folder on
test jobs.
0 commit comments