【问题标题】:Firebase: The item you requested is not available for purchaseFirebase:您请求的项目无法购买
【发布时间】:2021-04-17 15:40:54
【问题描述】:

所以我知道这个问题已经被问过很多次了,但是它们都是基于来自 Google Play 控制台的测试版部署。就我而言,我已经通过 Firebase 进行了 beta 部署。我在 Google Play 控制台上找不到任何关于 Firebase 的信息。

据我所知:

  1. GooglePlay: The item you requested is not available for purchase
  2. Android InApp Billing: The item you requested is not available for purchase. Inconsistent on a different google accounts
  3. Item you requested is not available for purchase - android in app billing

您必须通过 Google Play 控制台部署您的应用才能进行应用内购买,这对吗?我只是想对应用内购买进行 beta 测试,但我得到了:

错误:您请求的商品无法购买

如果可以在 Firebase 上完成,我需要做什么?

【问题讨论】:

    标签: android firebase google-play-console


    【解决方案1】:

    我想我应该提到这是我的错误。我尝试使用fastlane 部署测试版本,在我的Fastfile 测试通道中,我没有添加用于apk 签名的属性。如果您使用 fastlane 分发 beta 测试,请确保在您调用的通道的 Fastfile 中有类似于以下内容的内容,否则应用计费将不起作用:

    lane :beta do
      # ...
      gradle(
        task: 'assemble',
        build_type: 'Release'
        properties: {
            "android.injected.signing.store.file" => "[key_keystore]",
            "android.injected.signing.store.password" => "[store_password]",
            "android.injected.signing.key.alias" => "[key_alias]",
            "android.injected.signing.key.password" => "[key_password]",
          }
      )
    
      firebase_app_distribution(
        app: "your_app_id",
        groups: "your_test_group"
      )
      # ...
    end
    

    请注意,您可以在项目的 bundle.gradle 文件中找到凭据属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-30
      • 2015-11-28
      • 2016-10-08
      • 2012-10-18
      • 2020-06-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多