Create a signed Android Android studio

I am new to Android development and have just finished my first app. I want to create a signed apk in android studio. I read the developer docs but couldn't figure out the steps. When I click on Build>Generate Signed APK... , it shows me a dialog box asking for the following:

 Keystore path //with two options create new and choose existing Keystore password Key alias key password 

I don’t understand what the keystore is, even after it sent it to Google. When I select create new , it asks me to choose a path and find a .jks file that I don’t have! Can someone explain and list the steps for creating a signed apk.

+60
android android-studio
Nov 28 '13 at 14:23
source share
8 answers

Use the Keytool or exe binary key to create a private keystore. Instructions are here . You can then sign your application using this keystore. Keytool installs when you install Java.

NOTE. Save / back up this keystore, because as soon as you publish the application in the game, signing it with this keystore, you will have to use the same keystore for any future updates. Therefore, it is important that you support it.

NTN.

+36
Nov 28 '13 at 14:32
source share

I do not think that someone answered the question correctly. Therefore, for everyone who has the same question, this should help:

Step 1 Go to Build> Generate Signed APK> Next (the selected module will be your module, most often called the "application")

Step 2 Click to create a new

Step 3 Basically, fill out the form with the necessary information. A tangled bit is where it asks for the path to the keystore. Click on the icon on the right with three dots ("..."), as a result of which a navigator window opens asking you to go and select the .jks file. Navigate to the folder where you want to save the keystore file, and then in the "File name" field at the bottom of this window, simply enter a name to your liking, and the "OK" button will now be available. What happens is that the window doesn’t really ask that you have selected the .jks file, but rather want you to give it the location and name you want.

Step 4 Click Next, and then select Release and Howl! you are done.

+58
Feb 17 '16 at 23:06
source share

Read my answer here

How to export a project to Android studio?

This will help you step by step to create a signed APK and how to create a keystore file from Android Studio.

From the link, you can do it easily since I added its screen shot step by step.

Short answer

If you have a Key-store file, you can do the same thing simply.

Go to the assembly, then click "Create Signature APK"

+21
Jan 12 '14 at 19:17
source share

The “official” way to customize the build.gradle file as recommended by Google is explained here .

Basically, you add a Config signature where you specify the location of the keystore password. Then, in the release creation type, see This signature configuration.

 ... android { ... defaultConfig { ... } signingConfigs { release { storeFile file("myreleasekey.keystore") storePassword "password" keyAlias "MyReleaseKey" keyPassword "password" } } buildTypes { release { ... signingConfig signingConfigs.release } } } ... 
+12
Nov 21 '14 at 16:12
source share
  1. Go to " Build" → " Create Signed APK" in Android Studio.
  2. In the new window that appears, click the " Create New ..." button.
  3. Then enter the data as shown below and click OKNext . enter image description here
  4. Select the build type as release and click Finish .
  5. Wait until the APK generated successfully message is displayed, as shown below. enter image description here
  6. Click " Show in Explorer" to see the signed APK file.

For more information, follow this link.

+7
Aug 04 '16 at 0:34
source share

I had the same problem. I filled the field with the file /home/tim/android.jks from the tutorial, thinking that the file will be created. and when I press the enter button, it will say that it cannot find the file. but when I try to create the file, it will not allow me to create the jks file. I closed Android studio and ran again, and everything worked out fine. I had to click ... to add the file correctly. create a signed apk wizard → new key store → hit ... select a keystore file. enter the file name I thought I would have to use openjdk and create my own key file, but it is built into Android studio.

+3
Jan 14 '15 at 7:11
source share

you can add this to your build gradient

 android { ... defaultConfig { ... } signingConfigs { release { storeFile file("my.keystore") storePassword "password" keyAlias "MyReleaseKey" keyPassword "password" } } buildTypes { release { ... signingConfig signingConfigs.release } } } 

if you need keyHash, do it through the android stdio terminal in the project root folder

 keytool -exportcert -alias my.keystore -keystore app/my.keystore.jks | openssl sha1 -binary | openssl base64 
+2
Jun 30 '15 at 14:35
source share

The official Android documentation on this subject with a step-by-step guide on how to create signed APK keys in Android Studio and even how to set up automatic creation of APK keys in the Gradle assembly.

https://developer.android.com/studio/publish/app-signing.html

See section: Sign your release version

0
Mar 31 '17 at 9:24
source share



All Articles