首页 > 解决方案 > 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 文件,而另一个我认为我已删除。

标签: androidgoogle-playgradle-play-publisher

解决方案


推荐阅读