The Wayback Machine - https://web.archive.org/web/20161108094526/https://developer.android.com/preview/setup-sdk.html
Skip to content

Most visited

Recently visited

navigation

Set Up the Preview

To develop apps for the Android 7.1 Preview, you need to make some updates to your developer environment, as described on this page.

Get the Android 7.1 Preview SDK

To start developing with Android 7.1 APIs, you need to install the Android 7.1 Preview SDK in Android Studio as follows:

  1. Open the SDK Manager by clicking Tools > Android > SDK Manager.
  2. In the SDK Platforms tab, check the Android 7.1 Preview checkbox.
  3. Click the SDK Tools tab, and then check the Android SDK Build Tools, Android SDK Platform-Tools, and Android SDK Tools checkboxes.
  4. Click OK, and then accept the licensing agreements for any packages that need to be installed.

Get the Android 7.1 Preview reference documentation

The API reference for the Android 7.1 platform (API level 25) is available online at developer.android.com/reference/. There is also an incremental diff report for API changes between API levels 24 and 25.

Update or Create a Project

Be sure that you've updated your project to use Android SDK Build Tools 25.0.0 and Android SDK Platform-Tools 25.0.0.

If you plan to use Java 8 language features, you should also read Java 8 Language Features for information about the supported Java 8 features and how to configure your project with the Jack compiler.

Update an existing project

Open the build.gradle file for your module and update the values as follows:

android {
  compileSdkVersion 25
  buildToolsVersion '25.0.0'
  ...

  defaultConfig {
     targetSdkVersion 25
     ...
  }
  ...
}

Create a new project

To create a new project for development with the Android N MR1 Preview SDK:

  1. Click File > New Project. and follow the steps until you reach the Target Android Devices page.
  2. On this page, select the Phone and Tablet check box.
  3. Under Phone and Tablet option, in the Minimum SDK option list, select API 25: Android 7.1 Preview.

Next Steps

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.