Update or Create Project to support Android N(7.1)

Info reg your project update or creating a new project to support Android N devices.

Create New Project:

  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.

Update existing Project:

open build.gradle files to update your project to support Android N

android {
  compileSdkVersion 25
  buildToolsVersion '25.0.0'
  ...

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

More detail info refer Developer Android set up Android N7.1

Happy coding 🙂

Leave a comment