android - Android App Bundle 使用了错误的密钥签名
问题描述
我正在尝试使用此 gradle 插件发布我的 android 应用程序:https ://github.com/Triple-T/gradle-play-publisher但是当我尝试运行时.\gradlew assembleRelease publishBundle
收到此错误:
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$Processor
> There was a failure while executing work items
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
> 403 Forbidden
PUT https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/com.gabrielhernan
des.gastodeviagem/edits/17734014318215774904/bundles?uploadType=resumable&upload_id=ADPycdsieq0ceAV7i5z5sud70f5m
6JOncO3437nO1IG7gksKcN-PmskKd2fwwCihi9JQ4o6Yy4OMxj0ScLCQO_P7N7U
{
"code": 403,
"errors": [
{
"domain": "global",
"message": "The Android App Bundle was signed with the wrong key. Found: SHA1: some code, expected: SHA1: Another code",
"reason": "forbidden"
}
],
"message": "The Android App Bundle was signed with the wrong key. Found: SHA1: some code, expected: SHA1: Another code",
"status": "PERMISSION_DENIED"
}
出于安全原因,我没有输入我的 sha 号码,但我认为你可以理解。它说我的密钥库是错误的,但我不知道在哪里可以找到另一个,因为我只有一个 jks 文件,而另一个我认为我已删除。
解决方案
推荐阅读
- python - 如何优化预处理所有文本文档而不使用 for 循环在每次迭代中预处理单个文本文档?
- c# - 禁用对角线移动
- go - Intellij 在项目中找不到模块
- awk - 将毫秒添加到日志文件时间戳
- kubernetes - 在 EKS 上使用 Istio 时,如何限制创建的安全组规则中的 IP?
- ios - 如何在 Xcode Simulator 中修复此图像大小?
- javascript - 光滑的滑块显示堆叠的幻灯片
- typescript - 使用默认值解构后的“对象可能为空”
- dart - Flutter Bottom Sheet:当用户与工作表交互时如何改变高度
- python-3.x - 如何在python中为aws boto3 ec2专用主机过滤字典数据