Skip to content

Most visited

Recently visited

navigation

Get Started with the Preview

If you want an environment for basic compatibility testing, 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 Android 7.0, install 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-3-docs.zip MD5: 22bae00e473e39e320aae8ea09a001a5
SHA-1: 474502cc7092bcf0bd671441b8654aa8d6c155ed

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:
    • In the android section, update the compileSdkVersion to 24.
    • In the android section, update the targetSdkVersion to 24.
    • In the dependencies section, update the existing reference to the Wearable Support Library (for example, compile 'com.google.android.support:wearable:1.4.0') by changing it to the following, which requires that your the Google Repository is the latest version: compile 'com.google.android.support:wearable:2.0.0-alpha3'
  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 Android 7.0 APIs in a phone app, then the Minimum SDK option list, select API 24: Android 7.0 (Nougat).
  3. Select the Wear option, and in the Minimum SDK option list, select the latest available (API Nougat) option. Click Next until you exit the Create New Project wizard.
  4. In the build.gradle file for the Wear module:
    • In the android section, update the compileSdkVersion to 24.
    • In the android section, update the targetSdkVersion to 24.
    • In the dependencies section, update the existing reference to the Wearable Support Library (for example, compile 'com.google.android.support:wearable:1.4.0') by changing it to the following, which requires that your the Google Repository is the latest version: compile 'com.google.android.support:wearable:2.0.0-alpha3'
  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
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.

Take a one-minute survey?
Help us improve Android tools and documentation.