In Android Studio, create a newBasic Activityproject. In the wizard, theMinimum API levelshould be set to 21 (Android 5.0 Lollipop).
In the new project, ensure theAndroidview is selected, and then selectapp>manifests, and open theAndroidManifest.xmlfile. Add the following permission before the<application>tag.