Update: Android 9.0 stable support is now available.

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.

We’re excited to announce Xamarin.Android support for Android 9.0 (P) in our latest preview release of Xamarin.Android for both Visual Studio 2017 and Visual Studio for Mac.

Installing Xamarin.Android for Android 9.0 (P)

You can get Android 9.0 (P) support in Xamarin.Android 9.0 and above, which is available today in the Visual Studio Preview channel and Visual Studio for Mac Beta channel.

Visual Studio 2017

  • Open the Visual Studio Installer, and download the latest Visual Studio 2017 Preview (15.8 Preview 5).

Visual Studio for Mac

  • Switch the Visual Studio for Mac Update Channel to the Beta channel.
  • Download Xamarin.Android 9.0.0.17 and install the update.

Both Visual Studio 2017 and Visual Studio for Mac

Android 9.0 development requires JDK 1.8 for the compilation of applications; JDK 1.8 is available from Oracle or you can try our preview of OpenJDK 1.8. See the requirements documentation for more information.

Install the Android P 9.0 SDK

Start the Android SDK Manager:
  • Visual Studio 2017, use Tools > Android > Android SDK Manager
  • Visual Studio for Mac, use Tools > SDK Manager

First, make sure you are using Google’s repository within the SDK Manager to do this, click on the Gear > Repository > Google:

Install Android 9.0(API 28) SDKs and Device System Images:

Install the latest Android SDK tools for API 28. This includes build-tools and platform-tools.

For more information about using the Android SDK Manager to install the Android SDK, see Using the SDK Manager.

Once installed, you’ll be able to set your Target Framework Version to Android 9.0 (P) in your project and take advantage of the new APIs:

Learn More

For more detailed information on how to get started with Android P, please see our documentation.

Feedback

We encourage your feedback on any issues to be reported via the Report a Problem option found in your favorite IDE via Help > Report a Problem. If you have any questions regarding Android P APIs, please post them on the Xamarin Forums or Stack Overflow.

Discuss this post in the Xamarin Forums