Info reg your project update or creating a new project to support Android N devices.
Create New Project:
- Click File > New Project. and follow the steps until you reach the Target Android Devices page.
- On this page, select the Phone and Tablet check box.
- 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 🙂