简体   繁体   English

Android InApp帐单-使用发行版时未配置版本错误

[英]Android InApp Billing - version not configured error, while using release

Another Android InApp Billing question... 另一个Android InApp结算问题...

I got the following error: 我收到以下错误:

This version of application is not configured for billing. 此版本的应用程序未配置计费。

, while trying to purchase a real configured managed item. ,同时尝试购买实际配置的托管商品。 I have already multiple versions released for production. 我已经发布了多个版本供生产。 They do not contain any billing code, but I thought signing a release build from my current dev branch with the same version number and name as the last apk in store, would suit - but it don't. 它们不包含任何帐单代码,但是我认为从我当前的dev分支签名发布版本,并使用与商店中最后一个apk相同的版本号和名称可以,但不行。

What have I done on my dev branch apk: 我在开发分支apk上做了什么:

  1. added permission to manifest 添加了清单的权限

  2. added billing code to do a purchase with my sku 添加了帐单代码以通过我的sku购物

  3. changed version name and number to be same as last store version 更改版本名称和编号,使其与上一个商店版本相同

  4. added managed product with same sku to dev console and activated it 将具有相同sku的被管理产品添加到开发控制台并激活了它

  5. waited 24h+ 等待了24小时以上

  6. added my google accounts from device to alpha testers 将我的Google帐户从设备添加到了Alpha测试仪

  7. added my google accounts to Gmail accounts with testing access in devC>settings>Account Details 在devC>设置>帐户详细信息中将我的Google帐户添加到具有测试访问权限的Gmail帐户

  8. build apk for release and signed it as usual with release key 构建发布的APK并使用发布密钥照常签名

What am I might be missing here? 我在这里可能会想念什么? Thank you in advance! 先感谢您!

Follow these steps from android developer site : 请从android开发者网站执行以下步骤:

To implement In-app Billing in your application, you need to do the following: 要在您的应用中实施应用内结算,您需要执行以下操作:

Add the In-app Billing library to your project.
Update your AndroidManifest.xml file.
Create a ServiceConnection and bind it to IInAppBillingService.
Send In-app Billing requests from your application to IInAppBillingService.
Handle In-app Billing responses from Google Play

Check Inapp Billing Link 查看Inapp结算链接

Publish your app in alpha for testing and then check it will works. 将您的应用发布为Alpha版以进行测试,然后检查其是否可以正常运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM