Multi-targeting with Android Support Library v28
Starting with Xamarin’s Android Support Library version 28, we are introducing multi-targeting. This includes assemblies for older support library versions when your application’s
TargetFrameworkVersion is lower than the expected version.
Multi-targeting will allow you to install the Android Support Library to your project regardless of the set
TargetFrameworkVersion. Then it will use the latest Android Support Library version that is supported for your application.
Have you ever seen this familiar error when installing an Android Support Library package?
NU1202: Package Xamarin.Android.Support.Design 188.8.131.52 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.Design 184.108.40.206 supports: monoandroid81 (MonoAndroid,Version=v8.1)
Now, you will no longer have to worry about running into NuGet compatibility failures with Xamarin’s Android Support Library v28 and later.
Use It Today!
Get this preview for all v28 Android Support Libraries available on NuGet today! To view these packages in NuGet, make sure to include prerelease packages in your NuGet Package Manager.
What’s Coming Next?
If you haven’t heard the news yet, the original Android Support Library has been officially renamed to AndroidX. This means that future updates to the Android Support Library will be following the AndroidX naming conventions. Stay tuned for more details on AndroidX in Xamarin.
We encourage everyone to engage with us on GitHub by reporting new issues or making suggestions. You can also use the Report a Problem option found in your favorite IDE via Help > Report a Problem to drop us a line.