简体   繁体   中英

How to configure build.gradle to use Google Play App Signing upload certificate

For .apk signing with keystore files I had something like that in my build.gradle file:

signingConfigs {
     release {
        storeFile file("../keystore.jks")
        storePassword "****"
        keyAlias "alias"
        keyPassword "****"
     }
}

How do I need to setup build.gradle to sign the .apk with an upload certificate ?

And also, can I use same upload certificate to sign multiple apps on same Google Play account?

I you have the upload key in a certificate, import that certificate into your keystore, then use it as you are used to.

And yes, you can use the same upload certificate for multiple apps. The upload certificate identifies you, not your app. It's the same as before with signing with the real certificate. You were able to sign multiple apps with the same key and doing that showing that they come from the same developer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM