【问题标题】:Huawei Push Kit - com.huawei.hms.common.ApiException: 6003: certificate fingerprint error华为Push Kit - com.huawei.hms.common.ApiException: 6003: 证书指纹错误
【发布时间】:2021-06-26 18:23:54
【问题描述】:

我收到“推送令牌失败,com.huawei.hms.common.ApiException: 6003: 证书指纹错误。”我不知道这里发生了什么。

【问题讨论】:

    标签: huawei-mobile-services huawei-developers huawei-push-notification


    【解决方案1】:

    在应用级 build.gradle 文件中检查您的密钥库签名配置。您需要确保正确配置了调试和发布签名配置。

    signingConfigs {
    
       debug {
           storeFile file(DEBUG_STORE_FILE)
           storePassword DEBUG_STORE_PASSWORD
           keyAlias DEBUG_KEY_ALIAS
           keyPassword DEBUG_KEY_PASSWORD
       }
    
       release {
           storeFile file(RELEASE_STORE_FILE)
           storePassword RELEASE_STORE_PASSWORD
           keyAlias RELEASE_KEY_ALIAS
           keyPassword RELEASE_KEY_PASSWORD
       }
    }
    
    buildTypes {
        
        debug {
            signingConfig signingConfigs.debug
        }
    
        release {
            signingConfig signingConfigs.release
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-12
      • 2021-05-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多