[英]You uploaded an APK that is not signed with the upload certificate - even though I am using Google Play Signing
Preface: There have been many questions on Stack Overflow about this issue, but my question is unique, because it involves Google Play Signing. 前言:Stack Overflow上有很多关于此问题的问题,但我的问题很独特,因为它涉及Google Play Signing。
I used Google Play Signing to release my app. 我使用Google Play Signing发布了我的应用。 As such, I have never created a keystore (
.jks
) file (at least for this app). 因此,我从未创建过密钥库(
.jks
)文件(至少对于这个应用程序而言)。 I imagined Google Play Signing would take care of all that for me. 我想象Google Play Signing将会为我完成所有这些工作。
After switching to Linux, from Windows, I tried to release a new update for my app. 从Windows切换到Linux后,我尝试为我的应用发布新的更新。 However, I got the error mentioned in the title.
但是,我收到了标题中提到的错误。
Here is my project's one and only signing config (the path was different on windows - but it still lead to the debug keystore). 这是我的项目唯一的签名配置(路径在Windows上是不同的 - 但它仍然导致调试密钥库)。 I've never created any others.
我从来没有创造过任何其他人。
signingConfigs {
config {
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('/home/vedantroy/.android/debug.keystore')
storePassword 'android'
}
}
What could be the issue? 可能是什么问题? Is there anyway I can continue publishing updates to the app?
无论如何我可以继续发布应用程序的更新吗?
I used Google Play Signing to release my app.
我使用Google Play Signing发布了我的应用。 As such, I have never created a keystore (.jks) file (at least for this app).
因此,我从未创建过密钥库(.jks)文件(至少对于这个应用程序而言)。
Even though Google Play owns the release key of your app, you still had to sign the APK you uploaded to the Play Console. 即使Google Play拥有您应用的发布密钥,您仍然必须在上传到Play控制台的APK中签名。 This is a requirement.
这是一项要求。 You possibly signed with a key auto-generated by your IDE without realising it.
您可能使用IDE自动生成的密钥进行了签名,但没有意识到。 This is what Play Console calls the "upload key".
这就是Play Console称之为“上传密钥”的内容。 Google Play then ensures that every future APK upload is signed with the same key.
然后Google Play会确保每个未来的APK上传都使用相同的密钥进行签名。
It seems that you haven't kept the keystore you used for your first upload when changing computer, but with Google Play signing you can fortunately reset the upload key. 在更换计算机时,您似乎没有保留用于首次上传的密钥库,但通过Google Play签名,您可以幸运地重置上传密钥。 See Create a new upload key .
请参阅创建新的上载密钥 。
With Google Play Signing you still sign your App with an upload key that must be the same each time. 使用Google Play Signing,您仍然可以使用每次必须相同的上传密钥对您的应用进行签名。 This signature is then checked and replaced by Google.
然后检查此签名并由Google替换。 It is possible to change the upload key in case you have lost it, check the Google Signing site for more info on that.
如果您丢失了上传密钥,可以更改上传密钥,请查看Google Signing网站以获取更多相关信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.