{"id":37561,"date":"2018-07-27T12:11:10","date_gmt":"2018-07-27T16:11:10","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=37561"},"modified":"2019-03-25T15:02:22","modified_gmt":"2019-03-25T23:02:22","slug":"xamarin-android-9-0-p-preview","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/xamarin-android-9-0-p-preview\/","title":{"rendered":"Announcing Xamarin.Android 9.0 (P) Preview"},"content":{"rendered":"\n<div>\n<p>Update: <a href=\"https:\/\/blog.xamarin.com\/android-pie-preview-getting-started\/\">Android 9.0<\/a> stable support is now available.<\/p>\n<p>Android 9.0 (P) introduces many features such as Wi-Fi RTT(Round-Trip-Time), Display cutout support, Notification enhancements, Multi-camera support, and much more.<\/p>\n<p>We&#8217;re excited to announce Xamarin.Android support for Android 9.0 (P) in our latest preview release of Xamarin.Android for both <strong>Visual Studio 2017 and Visual Studio for Mac.<\/strong><\/p>\n<\/div>\n<div>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-37563\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/AndroidP.png\" alt=\"\" width=\"500\" height=\"420\" \/><\/p>\n<\/div>\n<h2>Installing Xamarin.Android for Android 9.0 (P)<\/h2>\n<div>You can get Android 9.0 (P) support in Xamarin.Android 9.0 and above, which is available today in the <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\"><strong>Visual Studio Preview channel<\/strong><\/a> and <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/mac\/\">Visual Studio for Mac Beta channel<\/a>.<\/div>\n<h3>Visual Studio 2017<\/h3>\n<ul>\n<li>Open the Visual Studio Installer, and download the latest <strong>Visual Studio 2017\u00a0Preview (15.8 Preview 5)<\/strong>.<\/li>\n<\/ul>\n<h3>Visual Studio for Mac<\/h3>\n<ul>\n<li>Switch the Visual Studio for Mac Update Channel to the <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/update\">Beta channel<\/a>.<\/li>\n<li>Download <strong>Xamarin.Android 9.0.0.17<\/strong> and install the update.<\/li>\n<\/ul>\n<h3>Both Visual Studio 2017 and Visual Studio for Mac<\/h3>\n<div>Android 9.0 development requires JDK 1.8 for the compilation of applications; <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk8-downloads-2133151.html\">JDK 1.8 is available from Oracle<\/a>\u00a0or you can try our preview of <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/get-started\/installation\/openjdk\">OpenJDK 1.8<\/a>. See the <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/get-started\/installation\/index\">requirements documentation<\/a> for more information.<\/div>\n<h3>Install the Android P 9.0 SDK<\/h3>\n<div>Start the Android SDK Manager:<\/div>\n<ul>\n<li>Visual Studio 2017, use <strong>Tools &gt; Android &gt; Android SDK Manager<\/strong><\/li>\n<li>Visual Studio for Mac, use <strong>Tools &gt; SDK Manager<\/strong><\/li>\n<\/ul>\n<div>\n<p>First, make sure you are using Google&#8217;s repository within the SDK Manager to do this, click on the <strong>Gear &gt; Repository &gt; Google<\/strong>:<\/p>\n<\/div>\n<div><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKRepository.png\"><img decoding=\"async\" class=\"alignnone wp-image-37565\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKRepository.png\" alt=\"\" width=\"500\" height=\"415\" \/><\/a><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKRepository1.png\"><img decoding=\"async\" class=\"alignnone wp-image-37566\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKRepository1.png\" alt=\"\" width=\"150\" height=\"34\" \/><\/a><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKRepository2.png\"><img decoding=\"async\" class=\"alignnone wp-image-37567\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKRepository2.png\" alt=\"\" width=\"150\" height=\"33\" \/><\/a><\/div>\n<div><\/div>\n<div>Install <strong>Android 9.0(API 28) SDKs and Device System Images<\/strong>:<\/div>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-37564\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKPlatforms.png\" alt=\"\" width=\"500\" height=\"415\" \/><\/p>\n<div>\n<p>Install the latest Android SDK tools for API 28. This includes <strong>build-tools<\/strong>\u00a0and <strong>platform-tools<\/strong>.<\/p>\n<\/div>\n<div>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-37568\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/SDKTools.png\" alt=\"\" width=\"500\" height=\"415\" \/><\/p>\n<\/div>\n<div>For more information about using the Android SDK Manager to install the Android SDK, see <a href=\"https:\/\/developer.xamarin.com\/guides\/android\/application_fundamentals\/using-the-sdk-manager\/\">Using the SDK Manager<\/a>.<\/div>\n<div>\n<p>Once installed, you&#8217;ll be able to set your <strong>Target Framework Version<\/strong>\u00a0to <strong>Android 9.0 (P)<\/strong> in your project and take advantage of the new APIs:<\/p>\n<\/div>\n<div><img decoding=\"async\" class=\"aligncenter wp-image-37569\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/TargetFramework.png\" alt=\"\" width=\"600\" height=\"42\" \/><\/div>\n<h3>Learn More<\/h3>\n<p>For more detailed information on how to get started with Android P, please see our <a href=\"https:\/\/docs.microsoft.com\/xamarin\/android\/platform\/android-p\">documentation.<\/a><\/p>\n<h3>Feedback<\/h3>\n<div>\n<p>We encourage your feedback on any issues to be reported via the <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio-2017\">Report a Problem<\/a> option found in your favorite IDE via <strong>Help &gt; Report a Problem.<\/strong>\u00a0If you have any questions regarding Android P APIs, please post them on the <a href=\"https:\/\/forums.xamarin.com\/post\/question\/android\">Xamarin Forums<\/a> or <a href=\"https:\/\/stackoverflow.com\/questions\/ask?tags=xamarin+xamarin.android+android\">Stack Overflow<\/a>.<\/p>\n<p><a href=\"https:\/\/forums.xamarin.com\/130296\/announcing-xamarin-android-9-0-p-preview\/\"><em>Discuss this post in the Xamarin Forums<\/em><\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Android 9.0 (P) introduces many features such as Wi-Fi RTT(Round-Trip-Time), Display cutout support, Notification enhancements, Multi-camera support, and much more.<\/p>\n<p>We&#8217;re excited to announce Xamarin.Android support for Android 9.0 (P) in our latest preview release of Xamarin.Android for both <strong>Visual Studio 2017 and Visual Studio for Mac.<\/strong><\/p>\n","protected":false},"author":551,"featured_media":40966,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[313,2],"tags":[5,409,397],"class_list":["post-37561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-developers","tag-android","tag-releases","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>Android 9.0 (P) introduces many features such as Wi-Fi RTT(Round-Trip-Time), Display cutout support, Notification enhancements, Multi-camera support, and much more.<\/p>\n<p>We&#8217;re excited to announce Xamarin.Android support for Android 9.0 (P) in our latest preview release of Xamarin.Android for both <strong>Visual Studio 2017 and Visual Studio for Mac.<\/strong><\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/37561","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=37561"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/37561\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/40966"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=37561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=37561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=37561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}