> For the complete documentation index, see [llms.txt](https://anubhav-anand.gitbook.io/wordroid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anubhav-anand.gitbook.io/wordroid/step-3-android-studio-part/generating-apk-signed-apk.md).

# Generating APK / Signed APK

To test your app, you can plug-in you android device to your computer via USB and run the app directly on it. Or you can generate an APK and install it manually to test it.

## Generating Debug APK (Usually for testing)

1. Open your project in Android Studio.
2. Go to **Build > Build Bundle(s)/APK(s) > Build APK.**

It will start the APK build process. Once its completed, a popup message will be shown (bottom right corner of the android studio) with two buttons on it. Click on **Locate** and it will show the APK in the  File Explorer (Windows) / Finder(Mac).

{% hint style="info" %}
The APK will be generated into the **app > build > outputs > apk > debug** you will see an apk file named **app-debug.apk**
{% endhint %}

## Generating Signed APK (For PlayStore)

Before Generating Signed APK make sure you change the app's **Version Code** and **Version Name (**&#x54;his is visible to users on play stor&#x65;**).**&#x20;

1. Open your project in Android Studio.
2. Go to **Build > Generate Signed Bundle / APK**&#x20;

![](https://3127533915-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBZclTgh5vJglekk7E%2F-Lzex4cih_xmdr9E5Otu%2F-LzfWTbGTUOuQ9v5A8r9%2FScreenshot%202020-01-28%20at%203.09.51%20PM.png?alt=media\&token=13fed135-c12f-4855-aaf2-0111babf9f34)

&#x20;  3\. Choose APK (You can also generate the Android App Bundle. Process is almost same) and click Next.

![](https://3127533915-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBZclTgh5vJglekk7E%2F-Lzex4cih_xmdr9E5Otu%2F-LzfWuXj_McG_3hc_g7X%2FScreenshot%202020-01-28%20at%203.12.00%20PM.png?alt=media\&token=f4025665-6b5c-4d57-a8ce-ed43f48e368a)

&#x20;   4\. You will this screen. You might see the empty form here. If you have an existing key file then click on **Choose existing...** and choose the existing key file (This is mandatory if you want to update your app on play store). If you don't have any key then click on **Create new\...** and fill in the form that appear next. It will generate a key file that you will be using to sign  your app in order to update the app on play store. Otherwise you will loose all your existing user.&#x20;

Fill in the **Key Store password, Key alias and Key password** and click **Next**

![](https://3127533915-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBZclTgh5vJglekk7E%2F-LzfXqi2EpzZMWdAWEoN%2F-LzfYYNQ2VK5YQGMc6EZ%2FScreenshot%202020-01-28%20at%203.18.28%20PM.png?alt=media\&token=936eacc7-fb20-41ee-acc3-71d21efdd3a9)

&#x20;   5\. Click on the **release** and make sure you check both the **V1 (Jar Signature)** and **V2 (Full APK Signature)** and click on **Finish.** Your APK will be generated and a confirmation PopUp message will be shown. You can upload that APK to playstore.
