Google

How to make APK from Android Studio? Generate a signed bundle

How to make APK from Android Studio?

Making an APK or a signed bundle from Android Studio is a necessary step to setup app on Google Play Store , as the Google Android app bundle and Google Play bundle APK are the packages that must be created to upload app bundle to Play Store and have an app published on the GooglePlayStore .

See below the continuation of our example on the creation of the best travel budget app Android using free existing code from the TravelPayouts affiliate program. TravelPayouts affiliate program and code for flight booking app development
WhereCanIFLY Where Can I FLY – best travel budget app Android

Generate signed bundle or APK from Android Studio

Generating a signed bundle or APK from AndroidStudio is pretty easy, in case you can use a new upload key and haven’t forgotten the password of your upload key – otherwise, it won’t work.

To make APK from Android studio, start by opening the Generate signed bundle or APK menu.

Generate signed Android app bundle in Android Studio: build > generate signed bundle/APK
How to make APK from Android Studio? Generate a signed bundle : Generate signed bundle or APK menu in Android studio
Generate signed bundle or APK menu in Android studio

Then, select if you want to create a signed Google Android app bundle , or a Google Play APK.

How to make APK from Android Studio? Generate a signed bundle : Select Android app bundle or APK
Select Android app bundle or APK

In order to generated a signed bundle, it will be necessary to provide a key. If you have an existing key, use the choose existing button.

If not, start creating a new key.

How to make APK from Android Studio? Generate a signed bundle : Key selection
Key selection

Create new Play Store upload key

To create a new upload key, enter all the necessary information in the form: key store path, matching passwords, alias, matching key password, validity in years, first and last name, organizational unit, organization, city or locality, state or province, and country ISO code.

Then, generate the key that will be saved on your computer.

Your Google Android app bundle can now be generated and you can upload app bundle to Play Store – unless you are facing an issue, such as using a new key for an app that already exists.

How to make APK from Android Studio? Generate a signed bundle : Create new kew in Android Studio key store
Create new kew in Android Studio key store

Reset Google Play upload key

To reset the Google Play upload key, you’ll have to contact the Google Play support and ask them to reset your upload key.

After a while, the support will answer asking to generate a new key as explained above, and for the new key certificate in PEM format.

Android Studio Help Center: Generate an upload key and keystore
exports certificate of signing key to .pem extension in Android Studio

How to make APK from Android Studio? Generate a signed bundle : Google Play support message for new key generation
Google Play support message for new key generation

Install KeyStore Explorer to get PEM key certification

If you need to use a new upload key, and send to the GooglePlay support the PEM certificate, the best way is to use the KeyStore Explorer program.

Download and install it to be able to get that PEM certificate.

Download KeyStore Explorer

How to make APK from Android Studio? Generate a signed bundle : KeyStore Explorer download page
KeyStore Explorer download page

After that, start the application from the Windows start menu.

How to make APK from Android Studio? Generate a signed bundle : KeyStore Explorer application start from Windows
KeyStore Explorer application start from Windows

Install Java for KeyStore Explorer

It might be necessary to install the latest Java version before being able to start the KeyStore Explorer program and get the PEM certificate.

Download Java for Windows

How to make APK from Android Studio? Generate a signed bundle : Download Java for Windows
Download Java for Windows

Get the PEM key certificate from an upload key

After having installed Java program, you should finally be able to install the KeyStore Explorer program.

Select the open an existing keystore option to begin with.

How to make APK from Android Studio? Generate a signed bundle : Open an existing KeyStore option in KeyStore Explorer
Open an existing KeyStore option in KeyStore Explorer

Then, find on your computer the key in .jks format that has been created previously with AndroidStudio .

How to make APK from Android Studio? Generate a signed bundle : Select jks key file on computer to extract PEM certificate
Select jks key file on computer to extract PEM certificate

The password will be requested to open that key, and you’ll have to provide it to enter its details.

Once the key have been opened, double click on the one to use for upload app bundle to Play Store by double clicking on it.

All details will be displayed, and you will be able to click on a PEM button to access the famous PEM certificate.

How to make APK from Android Studio? Generate a signed bundle : Opening certificate details for key upload
Opening certificate details for key upload

Once the PEM certificate will be displayed, simply click on export to save it on your computer, and send that file to the Google Play Support to reset your upload key.

After a while, they will confirm that the key has been resetted, and that you can use the new upload key to generate signed bundles or APK to upload app bundle to Play Store – it will still take a few days for the new keys to become valid.

The whole operation of resetting a Google Play upload key takes around one week, after what it will be possible to upload again your Google Android app bundle in a new app release.

WhereCanIFLY Android travel apps

How to make APK from Android Studio? Generate a signed bundle : PEM certificate of a new upload key
PEM certificate of a new upload key