简体   繁体   English

Google Play 应用签名upload.pem?

[英]Google Play App Signing upload.pem?

I've developed and uploaded an android app to the Google Play Store, and I "accidentally" clicked the enable Google Play App Signing.. Now my app has been "stuck" at that stage for some hours now, and I'm suspecting the signed .apk (signed by my, by a jks I have on my machine) is not signed with the correct certificate..我已经开发并上传了一个 android 应用程序到 Google Play 商店,我“不小心”点击了启用 Google Play 应用程序签名..现在我的应用程序已经在那个阶段“卡住”了几个小时,我怀疑签名的 .apk(由我的签名,由我机器上的 jks 签名)未使用正确的证书签名。

Since I clicked enable to the Google Play App Signing, I got a "upload.pem" and a "deployment.pem", but I have no idea on what to do with these to certificates, and absolutely no idea on how to sign my .apk with these/one of these, since the info page only says that you need to use the upload to sign the .apk.自从我点击启用 Google Play 应用签名后,我得到了一个“upload.pem”和一个“deployment.pem”,但我不知道如何处理这些证书,也完全不知道如何签署我的.apk 与这些/其中之一,因为信息页面只说你需要使用上传来签署 .apk。 ( https://support.google.com/googleplay/android-developer/answer/7384423 ) ( https://support.google.com/googleplay/android-developer/answer/7384423 )

So I'm wondering if anyone could help me with what to do, and how to sign the app correctly?..所以我想知道是否有人可以帮助我做什么,以及如何正确签署应用程序?...

You do not need to import upload.pem to keystore that you used to sign the APK previously, unless you are using a new keystore to sign the APK.您不需要将upload.pem 导入之前用于签署APK 的密钥库,除非您使用新的密钥库来签署APK。 Just sign it with your keystore and upload it to Play Store.只需使用您的密钥库对其进行签名并将其上传到 Play 商店即可。

如果您需要程序方面的帮助,我在这里创建了一个指南

just add publish sha1 key in your api console只需在您的 api 控制台中添加发布 sha1 密钥

you have some publish upload sha1 key, md5, another type of hash key.你有一些发布上传 sha1 密钥,md5,另一种类型的哈希密钥。 just copy the sha 1 key and paste api console with app package name.只需复制 sha 1 密钥并粘贴带有应用程序包名称的 api 控制台。 its work for me ,i hope this will help.它对我有用,我希望这会有所帮助。 thak you谢谢你

I've got exactly the same problem. 我有完全相同的问题。 Google Play Console provived me with 2 .PEM files and they tell you to use them to sign your APK, but they don't tell you how to do it. Google Play控制台向我提供了2个.PEM文件,他们会告诉您使用它们来登录您的APK,但他们并没有告诉您如何操作。 I've been searching the web for hours now without succes. 我一直在网上搜索几个小时而没有成功。 No info at all on this topic. 关于这个主题没有任何信息。

Maybe there is another solution, but I have not managed to succeed yet so maybe you guys can help. 也许有另一种解决方案,但我还没有成功,所以也许你们可以提供帮助。 On the page where you can download the .PEM files you are also provided with the SHA-1 code. 在可以下载.PEM文件的页面上,还提供了SHA-1代码。 I created my app in Unity so the Keystore file from Unity probably generates my current SHA-1 code. 我在Unity中创建了我的应用程序,因此Unity的Keystore文件可能会生成我当前的SHA-1代码。 When I try to upload my (instant) APK now I get this message: Google APK Upload Error Message So my thought was just to try to change the SHA code. 当我尝试上传我的(即时)APK时,我收到此消息: Google APK上传错误消息所以我的想法只是尝试更改SHA代码。 Editing APK files is completely new to me (so is creating games by the way) so I tried to find the SHA code in Android Studio and I also downloaded an application called APK Studio which allows you more editing options. 编辑APK文件对我来说是全新的(顺便创建游戏也是如此)所以我试图在Android Studio中找到SHA代码,我还下载了一个名为APK Studio的应用程序,它允许你有更多的编辑选项。 Unfortunately I've not been able to find out how to change the SHA-1 code in my APK file. 不幸的是,我无法找到如何更改APK文件中的SHA-1代码。 I think if I can do this the problem is solved. 我想如果我能做到这一点,问题就解决了。

Can anyone please be of assistance? 有人可以帮忙吗?

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

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