page.title=Run Your App on the N Preview meta.keywords="preview", "android" page.tags="preview", "developer preview" page.image=images/cards/card-n-sdk_2x.png @jd:body
If you have an existing Android app and you simply want to run it on the N Preview system image, then you need either a virtual device or a supported hardware device configured with N Preview system image.
Simply installing your app onto the N Preview this way does not require any changes to your app source code. If, however, you want to update your app to use new APIs in the N Preview and new language features of Java 8, then you need to download Android Studio 2.1 (preview) as described in Set Up to Develop for the N Preview.
So, although Android Studio 2.1 is required for development with N Preview APIs, you can use Android Studio 1.5 or higher if you simply want to run your app in the emulator or a connected device.
To use the Android Emulator to run the N Preview you need to download the Android N Preview SDK and create a virtual device for the emulator.
First, downloaded the Android N Preview SDK as follows (if you already got it while setting up Android Studio 2.1, you can skip this part):
Now create a virtual device with the N Preview system image:
You can now launch the Android Emulator with the Android N Preview AVD.
For more information about creating virtual devices, see Managing Virtual Devices.
If you have a Nexus 5X, Nexus 6P, Nexus 9, Pixel C, or Nexus Player, you can install the N Preview for testing your app.
Important: Installing a preview image on a device removes all data from it, so you should backup any data before installing a preview image.
TODO(smain/joefernandez): Merge as appropriate with Image Downloads and OTA Updates.