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

查看:177
本文介绍了如何使用上传密钥制作签名的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天全站免登陆