Step by Step Guide to Generate a signed APK using Android Studio
Get a signed APK to deploy the android application on the Google play store
After you successfully develop your Android application, you need to develop its APK file. Here, APK files can be generated for testing purposes as well. However, in this blog, I will be discussing the stepwise procedure to generate a signed APK file for deploying your application in Google Play Store.
Note: Before you dive into the stepwise procedure, you should have adequate knowledge about the APK files and the difference between building an android APK and generating a signed APK file. Here’s the link to my blog where I talked about this subject matter.
What is an APK File? Difference Between Building an Android APK and Generating Signed APK file.
Learn more about Android APK files
Stepwise Procedure for Generating a signed APK in Android Studio
Step 1: First of all you are required to ‘Sign in’ to your ‘Google account’ as shown in the image below.
Step 2: Then, at the toolbar, click on the ‘Build’ option and select the ‘Generate Signed Bundle / APK …’ as shown in the image below.
Step 3: Now, a pop-up appears as shown in the image below.
Step 4: Here, select ‘APK’ in the radio button as shown in the image below. Then, click on the ‘Next’ button.
Step 5: Click on the ‘Create new … ’ button.
Step 6: Now, another pop-up regarding the ‘New Key Store’ appears.
Step 7: In ‘New Key Store’, browse a ‘Key store path’ by clicking on the Folder icon as shown in the image below. Then, provide a ‘Password’ and ‘Confirm’ password. Now, on the ‘Key’ section, provide an ‘Alias:’. After that enter a ‘Password’ and ‘Confirm’ password. Then, determine ‘Validity (years). Hence, after you have provided details regarding ‘Key’ you can move onto the ‘Certificate’ section. here, provide your ‘First and Last Name’. Then, enter your address details i.e. ‘City or Locality’, ‘State or Province’, and ‘Country Code (XX)’. After you have provided the required details, click on the ‘OK’ button.
Step 8: Now, you can see the path for your ‘Key store’.
Step 9: Here, enter the ‘Key store password’ and ‘Key password’ as shown in the image below. After you have provided the ‘Key store password’ and ‘Key password’, click on the ‘Next’ button.
Step 10: Checkmark the ‘V1 (Jar Signature)’ in ‘Signature Versions’ as presented in the image below.
Step 11: Now, after you have checked the ‘V1 (Jar Signature)’, click on the ‘Finish’ button.
Step 12: If you complete all the steps as required, your Signed APK will generate. Then once, your APK file gets generated, you can locate your .apk file by clicking on ‘locate’ from the information dialogue box, Generate Signed APK.