{"id":46519,"date":"2020-02-21T11:05:32","date_gmt":"2020-02-21T19:05:32","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/xamarin\/?p=46519"},"modified":"2020-08-31T15:20:31","modified_gmt":"2020-08-31T22:20:31","slug":"xamarin-forms-xamarin-essentials-go-androidx","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/xamarin-forms-xamarin-essentials-go-androidx\/","title":{"rendered":"Xamarin.Forms &#038; Xamarin.Essentials Go AndroidX"},"content":{"rendered":"<p>Last week we released our official stable NuGet packages for <a href=\"https:\/\/developer.android.com\/jetpack\/androidx\/\" rel=\"noopener noreferrer\" target=\"_blank\">AndroidX<\/a>, which are an exciting replacement for the Android Support Libraries. AndroidX streamlines components into smaller and easier to update libraries for developers to consume. In the <a href=\"https:\/\/devblogs.microsoft.com\/xamarin\/androidx-nuget-packages-are-stable?WT.mc_id=repeater-blog-jamont\" rel=\"noopener noreferrer\" target=\"_blank\">post<\/a> last week, we also outlined several ways to start migrating your Android applications to take advantage of them. Today, I wanted to talk more about our upcoming plans for AndroidX for both Xamarin.Forms and Xamarin.Essentials. <img decoding=\"async\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Jetpack_logo-2-300x300.png\" alt=\"Image Jetpack logo 2\" width=\"300\" height=\"300\" class=\"aligncenter size-medium wp-image-46520\" srcset=\"https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Jetpack_logo-2-300x300.png 300w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Jetpack_logo-2-1024x1024.png 1024w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Jetpack_logo-2-150x150.png 150w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Jetpack_logo-2-768x768.png 768w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Jetpack_logo-2.png 1400w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2>Upcoming Releases The upcoming releases of Xamarin.Forms 4.5 and Xamarin.Essentials 1.5, both in pre-release today, offer an upgrade path for developers creating Android apps. Both of the libraries will use AndroidX as their base when your application has its compile target set to Android 10. This means if you are currently compiling against and older version of Android your app will still receive the older support libraries when upgraded to these versions. To change your compile target, you can head into the project settings:<\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Android10-1024x324.png\" alt=\"Project settings for Android 10\" width=\"640\" height=\"203\" class=\"aligncenter size-large wp-image-46522\" srcset=\"https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Android10-1024x324.png 1024w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Android10-300x95.png 300w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Android10-768x243.png 768w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2020\/02\/Android10.png 1174w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/> Once this version is set and you upgrade Xamarin.Forms or Xamarin.Essentials your app will start to use the AndroidX libraries and the migration support. This means even if you have other libraries still using older support libraries you should no problems.<\/p>\n<h2>Library Creators Call to Action Right now is a great time to start upgrading your libraries to use AndroidX. I would recommend checking out the<\/h2>\n<p><a href=\"https:\/\/github.com\/xamarin\/Essentials\/pull\/1095\/files\" rel=\"noopener noreferrer\" target=\"_blank\">AndroidX pull request to Xamarin.Essentials<\/a> as it shows you how to multi-target and support all versions of Android with a few lines of code. We recommend releasing new pre-release versions that base off of Xamarin.Forms 4.5 and Xamarin.Essentials 1.5 so all dependencies line up to help upgrades. It may also be helpful to create an issue and track AndroidX progress in your open source project and update the README with this information.<\/p>\n<h2>What&#8217;s Next? The next stop for AndroidX is full integration throughout the Xamarin ecosystem. We hope that library creators start to adopt AndroidX so their users have a seamless transition and can start to slowly phase out the older support libraries. In an upcoming release of Visual Studio 2019 and Visual Studio 2019 for Mac you will see AndroidX used throughout all of the Android and Xamarin.Forms templates that use the latest versions of Xamarin.Forms and Xamarin.Essentials.<\/h2>\n<h2>Feedback Welcome For any issues with AndroidX or Xamarin, please\u00a0<\/h2>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?WT.mc_id=repeater-blog-jamont\">file an issue on Developer Community<\/a>. You may also file an issue within the <a href=\"https:\/\/github.com\/xamarin\/AndroidX?WT.mc_id=repeater-blog-jamont\">Xamarin AndroidX GitHub repository<\/a>. Additionally, share any suggestions for how we can improve the AndroidX experience by <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/suggest-a-feature?WT.mc_id=repeater-blog-jamont\">filing a suggestion on Developer Community.<\/a> Lastly, check out our <a href=\"https:\/\/github.com\/xamarin\/XamarinAndroidXMigration?WT.mc_id=repeater-blog-jamont\">Xamarin AndroidX Migration GitHub repository<\/a> for some tips and tricks in using the package, known issues, and limitations!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AndroidX is here! Find out our plans for integration into Xamarin.Forms, Xamarin.Essentials, and beyond. Also, if you are a library creator we recommend a migration strategy for you and your users.<\/p>\n","protected":false},"author":544,"featured_media":46520,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[313,2,367],"tags":[8063,6334,24,16],"class_list":["post-46519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-developers","category-xamarin-forms","tag-android-jetpack","tag-androidx","tag-xamarin-essentials","tag-xamarin-forms"],"acf":[],"blog_post_summary":"<p>AndroidX is here! Find out our plans for integration into Xamarin.Forms, Xamarin.Essentials, and beyond. Also, if you are a library creator we recommend a migration strategy for you and your users.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/46519","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\/544"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=46519"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/46519\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/46520"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=46519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=46519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=46519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}