{"id":38358,"date":"2018-11-28T13:09:29","date_gmt":"2018-11-28T18:09:29","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=38358"},"modified":"2019-03-25T13:48:19","modified_gmt":"2019-03-25T21:48:19","slug":"multi-targeting-with-android-support-library-v28","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/multi-targeting-with-android-support-library-v28\/","title":{"rendered":"Multi-targeting with Android Support Library v28"},"content":{"rendered":"<p>Starting with Xamarin\u2019s Android Support Library version 28, we are introducing multi-targeting. This includes assemblies for older support library versions when your application&#8217;s <code>TargetFrameworkVersion<\/code>\u00a0is lower than the expected version.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SupportLibraryFatPackages.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-38359\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SupportLibraryFatPackages.png\" alt=\"\" width=\"306\" height=\"210\" \/><\/a><\/p>\n<h2>Multi-targeting<\/h2>\n<p>Multi-targeting will allow you to install the Android Support Library to your project regardless of the set <code>TargetFrameworkVersion<\/code>. Then it will use the latest Android Support Library version that is supported for your application.<\/p>\n<p>Have you ever seen this familiar error when installing an Android Support Library package?<\/p>\n<pre><code>\r\nNU1202: Package Xamarin.Android.Support.Design 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.Design 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)\r\n<\/code><\/pre>\n<p>Now, you will no longer have to worry about running into NuGet compatibility failures with Xamarin&#8217;s Android Support Library v28 and later.<\/p>\n<h2>Use It Today!<\/h2>\n<p>Get this preview for all v28 Android Support Libraries available on NuGet today! To view these packages in NuGet, make sure to <a href=\"https:\/\/docs.microsoft.com\/en-us\/nuget\/consume-packages\/finding-and-choosing-packages#pre-release-packages\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">include prerelease packages in your NuGet Package Manager<\/a>.<\/p>\n<h2>What&#8217;s Coming Next?<\/h2>\n<p>If you haven&#8217;t heard the news yet, the original Android Support Library has been officially renamed to <a href=\"https:\/\/developer.android.com\/jetpack\/androidx\/\"><strong>AndroidX<\/strong><\/a>. 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.<\/p>\n<h2>Feedback<\/h2>\n<p>We encourage everyone to engage with us on GitHub by <a href=\"https:\/\/github.com\/xamarin\/AndroidSupportComponents\/issues\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">reporting new issues or making suggestions<\/a>. You can also use the <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio-2017\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Report a Problem<\/a> option found in your favorite IDE via <span>Help &gt; Report a Problem<\/span> to drop us a line.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starting with Xamarin\u2019s Android Support Library version 28, we are introducing multi-targeting. This includes assemblies for older support library versions when your application&#8217;s TargetFrameworkVersion\u00a0is lower than the expected version.<\/p>\n","protected":false},"author":551,"featured_media":40927,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[313,2],"tags":[5,429,784],"class_list":["post-38358","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-developers","tag-android","tag-components","tag-support-libraries"],"acf":[],"blog_post_summary":"<p>Starting with Xamarin\u2019s Android Support Library version 28, we are introducing multi-targeting. This includes assemblies for older support library versions when your application&#8217;s TargetFrameworkVersion\u00a0is lower than the expected version.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/38358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/551"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=38358"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/38358\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/40927"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=38358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=38358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=38358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}