Creating a signed APK in Android Studio

creating keystore:

1212.PNG

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
Note:
should use 1 password for all.
-alias in KeyStore.jks is used for generating.
Example of gradle.app:
...
android{
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'), 'proguard-rules.pro'
        signingConfig signingConfigs.release
    }
}
}
...
 https://support.globalsign.com/customer/en/portal/articles/2121490-java-keytool---create-keystore 

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)

http://developer.android.com/intl/vi/tools/publishing/app-signing.html

fix

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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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