Build an APK with Android Studio
Let us know how you feel about this
last updated: 2016-09
We must build an APK that requests internet permissions.
Requesting Internet Permissions
It is crucial that an Android application be granted
INTERNET permissions. In Android Studio, edit the file AndroidManifest.XML and request the following permission:
<uses-permission android:name="android.permission.INTERNET" />
Build the APK
Once the Internet permissions have been added to the manifest, build an APK for tests. Typically you would do this using the the Build > Build APK... menu in Android Studio:
Android Studio will then take a brief moment to compile and package the APK. When Android Studio is done, it will notify you:
Be sure to make a note of where the APK is saved.
Now that an APK has been created, let's write the first test.