page.title=Get Started with the Preview meta.keywords="wear-preview" page.tags="wear-preview" page.image=images/cards/card-n-sdk_2x.png @jd:body
  1. Install Android Studio and the Latest Packages
  2. Get the Preview Reference Documentation
  3. Update or Create a Project

If you want an environment for basic compatibility testing of your app, you can use your current APK and a supported watch or an emulator. You don't necessarily need to update your full development environment to do basic testing. To simply test your app's compatibility with a preview system image, see Download and Test with a Device.

However, to develop apps for the Android Wear 2.0 Developer Preview, you need to make some updates to your development environment, as described below.

Install Android Studio and the Latest Packages

1. For compatibility with the N Developer Preview, follow the setup instructions for installing the latest version of Android Studio.

2. Use the SDK manager to install or confirm that you have the latest installations of the following packages:

Get the Preview Reference Documentation

Detailed information about the preview is available in the preview reference documentation, which you can download from the following table. The zip file includes an updated API reference for the preview.

Reference documentation Checksums
wearable-support-preview-2-docs.zip MD5: afb770c9c5c0431bbcbdde186f1eae06
SHA-1: 81d681e61cee01f222ea82e83297d23c4e55b8f3

Update or Create a Project

To use the APIs, your project must be configured appropriately in Android Studio.

Update an existing project

To update an existing project for development:

  1. Start Android Studio, click Open an existing Android Studio Project, and select a project.
  2. If prompted by the Android SDK Manager for the SDK version to use for the project, select Use Android Studio's SDK.
  3. If prompted to update the Gradle plugin, update the version of the plugin.
  4. In the build.gradle file for the Wear module:
  5. See the following page for setting up a watch or emulator with a preview system image, in order to begin testing your app: Download and Test with a Device

Create a new project

To create a new project for development:

  1. Click File > New Project and follow the steps in the Create New Project wizard until you reach the Target Android Devices page.
  2. Optionally, select the Phone and Tablet option. If you plan to use N Preview APIs in a phone app, then the Minimum SDK option list, select API N: Android 6.x (N Preview).
  3. Select the Wear option, and in the Minimum SDK option list, select the latest available (N Preview) option. Click Next until you exit the Create New Project wizard.
  4. In the build.gradle file for the Wear module:
  5. See the following page for setting up a watch or emulator with a preview system image, in order to begin testing your app: Download and Test with a Device