Creating a signed APK in Android Studio

creating keystore:


pa: 1212456

1.redirect to jre folder

2.copy paste path:

keytool -genkey -v -keystore my-release-key.keystore -alias myapp -keyalg RSA
-keysize 2048 -validity 20000
3.create keystore.jks
keytool -genkey -alias myapp -keyalg RSA -keystore KeyStore.jks -keysize 2048
should use 1 password for all.
-alias in KeyStore.jks is used for generating.
Example of
signingConfigs {
    release {
        storeFile file("C:/Program Files/Java/jre1.8.0_60/bin/my-release-key.keystore")
        storePassword "keystore"
        keyAlias "myapp" //"alias_name"
        keyPassword "keystore"
buildTypes {
    release {
        //minifyEnabled true
        //proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
        signingConfig signingConfigs.release

Sau khi tạo keystore xong,tiếp tục tạo keystore như hướng dẫn (lưu ý: run Android Studio as Admin)


You uploaded an APK signed with a certficate that is not yet valid [SOLUTION]



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s