当我试图运行我的应用程序内计费我得到的错误:“这个版本的应用程序没有配置通过谷歌播放计费。查看帮助中心获取更多信息”。
我已经在Manifest文件中有计费权限,我有一个签名的。apk作为草稿上传到谷歌Play上,我也已经在我的手机上安装了相同的签名apk。
有什么帮助可以解决这个问题吗?
当我试图运行我的应用程序内计费我得到的错误:“这个版本的应用程序没有配置通过谷歌播放计费。查看帮助中心获取更多信息”。
我已经在Manifest文件中有计费权限,我有一个签名的。apk作为草稿上传到谷歌Play上,我也已经在我的手机上安装了相同的签名apk。
有什么帮助可以解决这个问题吗?
当前回答
2022答:
这是测试调试/发布版本&如果应用程序是由Play签名(这意味着从谷歌Play交付的应用程序的签名证书与使用Android Studio从您的机器安装应用程序时的证书不同)。
检查以下步骤:
Create your product on Google Play Console and activate it. Add license testers (open the Google Play Console -> Settings -> License Testing). Add all the Google accounts listed on your android device. Upload signed app to the internal testing track (it must be in release mode). Use the testing link to check if the app is available to download (make sure the uploaded app version to the internal track matches the version you're testing in debug mode). It takes some time to see the latest uploaded version there, so I recommend clearing the cache of the Play Store app. Run your app in debug mode from Android Studio. (Again, the app version and build number must match the values on the published version to the internal track).
我在两个不同的谷歌Play Console帐户(两个不同的应用程序)上进行了测试,它是有效的。
其他回答
在我的情况下,由于安装的apk和上传到市场的apk的签名不同,我看到了相同的消息。
如果你想调试IAB,你需要做的是:
提交到谷歌播放你的应用程序的版本与IAB的权限清单: 在谷歌播放上添加一个产品到您的应用程序:管理应用程序内计费 设置有签名的自定义调试密钥库:将Eclipse配置为使用有签名的密钥库
如果所有的设置都是OK的,你仍然得到错误的应用程序的这个版本没有配置通过谷歌播放计费。查看帮助中心获取更多信息。
在Play Store中编辑您的应用内产品定价或停用并激活应用内产品。这将解决问题。
在旧的开发控制台:
设置->帐户详细信息->许可证测试-> Gmail具有测试访问权限的帐户,并在这里键入您的帐户
在新的开发控制台:
输入您的Gmail帐户,点击“Enter”,然后点击“Save”。
如果你发布的版本与你在手机上测试的版本不一样,也会发生同样的情况。
例如,上传的版本是android:versionCode="1",而你在你的手机上测试的版本是android:versionCode="2"