Creating a signed APK in Android Studio

Creating a signed APK (Android application package) for your Android app is easy as 1, 2, 3...4, and 5! You’re five easy steps away from becoming an APK-signing master. The instructions we’ll be following here will mirror those from the Android Developers site.

1. Click on Build > Generate Signed APK in the menu

"Generate Signed APK" menu option

2. Click Next to build an APK for the app module

"Generate Signed APK Wizard" dialog

Creating a keystore

A keystore is a file that acts as your signature, hence why we need one to create a signed APK for your app. This will help us run your app in case of any issues when we build your app on our specialized “Android evaluation machines.” If you already have a keystore file, you may skip to Step 5 to finish building your signed APK.

3. Click on Create New to create a new keystore file

"Generate Signed APK Wizard" dialog with Create New button

4. Fill in the fields to create your keystore and key as appropriate.

"New Key Store" dialog

You should save your keystore in a safe place on your computer. You’ll use this keystore to sign your APK, which is one of the requirements of putting your app on the Play Store. You should not share this file with anyone who doesn’t own your app. Therefore, you should not send us your keystore.jks file.

Remember to also add a password for your keystore and your key. A keystore can have multiple keys, hence why there are two different password fields here.

5. Generate your signed APK

Generate your signed apk

In the Generate Signed APK Wizard (see Step 3 for a screenshot), you can choose the appropriate keystore value, such as the one you just created, as well as the password fields. Then click Next. On the following screen, click Finish. After a moment, your signed APK will be created.

For the final project

To ensure that we can run your app properly, you'll also send us your signed APK file when you submit the final project. You’ll also want to ensure your app builds properly before submitting your final project. Before sending us the code you zipped up, uploaded to GitHub, etc, rebuild the source code that you would send us to ensure that no build errors occur. Thanks!