Build an APK with Android Studio

PDF for offline use:
Related Articles:

Let us know how you feel about this.


0/250
Thanks for the feedback!

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.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.