简体   繁体   English

如何配置build.gradle以使用Google Play App签名上传证书

[英]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: 对于使用密钥库文件进行.apk签名,我的build.gradle文件中有类似的build.gradle

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 ? 我需要如何设置build.gradle才能使用上传证书对.apk进行签名?

And also, can I use same upload certificate to sign multiple apps on same Google Play account? 而且,我可以使用同一上传证书在同一Google Play帐户上签名多个应用吗?

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. 您可以使用相同的密钥对多个应用程序进行签名,并表明它们来自同一开发人员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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