{"id":44468,"date":"2019-06-17T13:24:08","date_gmt":"2019-06-17T20:24:08","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/xamarin\/?p=44468"},"modified":"2019-08-30T08:28:55","modified_gmt":"2019-08-30T15:28:55","slug":"automatic-android-sdk-management","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/automatic-android-sdk-management\/","title":{"rendered":"Automatic Android SDK Management"},"content":{"rendered":"<p>As a mobile developer building apps for Android, there are many tools used under the hood to build, deploy, and debug your Android applications. We know this can be an intimidating process. So to ensure that you will have the best experience while focusing on developing your apps, we want to make sure you&#8217;re using the latest tooling. The new and improved Automatic Android SDK Management tool is here to help!<\/p>\n<h3>What is Automatic Android SDK Management?<\/h3>\n<p>Loosely called &#8220;Auto SDK&#8221; in the Xamarin world, Auto SDK provides various checks at project load and build-time to ensure you have the right tooling installed on your local machine. This is especially helpful for making sure you are in a compatible scenario with all the Android tooling.<\/p>\n<p>Enabled by default, Auto SDK will provide you with various prompts throughout the lifecycle of your app&#8217;s development whether you&#8217;re on Visual Studio 2019 or Visual Studio for Mac 2019.<\/p>\n<h3>Creating a New Project<\/h3>\n<p>For example, say you were starting a fresh Xamarin.Forms application and your machine didn&#8217;t have the latest required tooling for Android.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-44470 size-large\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/NewProject-1024x710.png\" alt=\"Automatic Android SDK Management\" width=\"640\" height=\"444\" srcset=\"https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/NewProject.png 1024w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/NewProject-300x208.png 300w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/NewProject-768x533.png 768w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>As you complete configuring your project, Auto SDK will kick in and let you know to download the latest version of Android, in this case, Android Pie (API 28).<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-44469 size-large\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/AutoSdk-1024x562.png\" alt=\"Automatic Android SDK Management 2\" width=\"640\" height=\"351\" srcset=\"https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/AutoSdk-1024x562.png 1024w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/AutoSdk-300x165.png 300w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/AutoSdk-768x421.png 768w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/AutoSdk.png 1426w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Alongside this, you may notice it&#8217;s downloading the Android Pie (API 28) SDK platform and the latest build-tools version that matches, ensuring that you&#8217;re ready to build and deploy your project.<\/p>\n<h3>Upgrading an Older Project<\/h3>\n<p>What about older projects? Say you were compiling a previous version of the Android SDK, such as Android Oreo (API 27). This year you&#8217;re going to support the latest version of Android Pie (API 28). It&#8217;s as simple as changing your target framework, and letting Auto SDK do the rest:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-44489\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/image-8.png\" alt=\"\" width=\"247\" height=\"240\" \/><\/p>\n<p>Now you can sleep easy knowing that you have the right Android tooling installed while targeting the latest platform.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-44487\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/image-9.png\" alt=\"\" width=\"564\" height=\"313\" srcset=\"https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/image-9.png 564w, https:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/06\/image-9-300x166.png 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/p>\n<h3>Feedback<\/h3>\n<p>We&#8217;re continuously improving this experience and want to know your thoughts on it! For anything you believe is an issue with Automatic Android SDK Management, please <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio\">file an issue on Developer Community.<\/a><\/p>\n<p>Additionally, let us know if you have any suggestions for how we can improve this Auto SDK experience. Please also <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/suggest-a-feature\">file a suggestion on Developer Community.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuously improving the experience with Automatic Android SDK Management tools that are used under the hood to build, deploy, and debug your Android applications. Enabled by default, Auto SDK will provide you with various prompts throughout the lifecycle of your app\u2019s development. Learn more!<\/p>\n","protected":false},"author":551,"featured_media":44487,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[313,2],"tags":[5,5818],"class_list":["post-44468","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-developers","tag-android","tag-sdk"],"acf":[],"blog_post_summary":"<p>Continuously improving the experience with Automatic Android SDK Management tools that are used under the hood to build, deploy, and debug your Android applications. Enabled by default, Auto SDK will provide you with various prompts throughout the lifecycle of your app\u2019s development. Learn more!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/44468","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=44468"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/44468\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/44487"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=44468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=44468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=44468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}