Click on the green play icon to start executing your first program and set up your emulator:
Now, click on Create New Virtual Device and make sure that Use same selection for future launches is checked:
Select a device of your choice, and click on Next:
Select Nougat with API Level 24, and click on Next:
Give a name to your emulator (optional) ...