如何使用上传密钥制作签名的 apk? [英] How do I make a signed apk with upload key?

查看:37
本文介绍了如何使用上传密钥制作签名的 apk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循 管理您的应用签名密钥,其中指出要为新应用创建上传密钥,按照签署您的应用."

I follow Manage your app signing keys which states "To create an upload key for new apps, follow the instructions on sign your app."

我在使用 google play 应用签名"部分检查这里,这将我重定向到 管理您的应用签名密钥.此链接与第一个链接相同,因此我陷入了重定向循环.

I check here under section "Use google play App signing", which redirects me to Manage your app signing keys. This link is the same as the first link so I stuck in a loop of redirects.

我在中的生成密钥和密钥库"部分下检查您的应用程序 再次将我链接到管理您的应用签名密钥.

I check under section "Generate a key and keystore" in sign your app which again links me to Manage your app signing keys.

如果我在 中的手动签署 APK"部分下进行检查,请签署您的应用程序 我看到一条说明,如果我想使用 Google Play 应用签名进行签名,我应该使用我的上传密钥,有关更多信息,我应该查看 管理您的应用签名密钥.

If I check under section "Manually sign an APK" in sign your app I see note stating I should use my upload key if I wanted to sign with google play app signing and for more information I should check Manage your app signing keys.

我不知道从哪里获得上传密钥.我只是在重定向循环中.

I have no idea where to get the upload key. I am just in a redirect loop.

推荐答案

上传密钥"实际上并没有什么特别之处——它只是密钥库中的另一个密钥.您需要在开发者控制台中将此密钥注册为上传密钥,以便 Google 将其识别为您的上传密钥.

An "upload key" isn't really anything special- it is just another key in a keystore. You need to register this key as an upload key in the developer console for Google to recognize it as your upload key.

要生成上传密钥,只需按照 签署您的应用文档.您在那里生成的密钥将是您的上传密钥.

To generate an upload key, simply follow the steps for generating a key and a keystor under "Generate a key and keystore" on the Sign Your App documentation. The key you generate there will be your upload key.

生成上传密钥后,您需要使用

Once you have your upload key generated, you need to export it using

keytool -export -rfc -keystore upload-keystore.jks -alias upload -file upload_certificate.pem

其中 upload-keystore.jks 是包含要用作上传密钥的密钥的密钥库的名称,upload 是密钥的别名.

where upload-keystore.jks is the name of the keystore containing the key you want to use as an upload key and upload is the alias of the key.

最后,您需要在开发者控制台中进入您的应用,进入发布管理 > 应用签名,然后点击上传公钥证书"按钮上传您生成的 .pem 文件早些时候.这会将您的密钥注册为该应用的上传密钥".

Finally, you need to go to your app in the developer console, go to Release Management > App signing, then click the "Upload Public Key Certificate" button to upload the .pem file you generated earlier. This registers your key an "upload key" for that app.

这篇关于如何使用上传密钥制作签名的 apk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆