LINK - Google Play Store 应用内购买测试注意事项

在Google Play Store进行应用内购买(IAP)测试时,需要等待上传的apk在Google服务器上更新,通常需要一到两个小时。确保已上传的apk配置了IAP权限,并使用已签名的apk进行测试,不能直接从IDE运行未签名版本。测试购买不能使用开发者账号,需在Developer Console创建测试账号。测试设备需安装测试账号登录的应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LINK - http://stackoverflow.com/questions/20692402/application-not-configured-for-billing-through-google-play

LINK - http://developer.android.com/google/play/billing/billing_testing.html

There are a few things to consider here:

  1. After uploading your apk to Google Play, you need to wait a while for Google's servers to update (similar to when you publish an update). This can take an hour or two or longer in my experience. So try again in a few hours.

  2. Ensure that the version of the apk you uploaded is configured for IAP (through the permissions), and then only test IAP with a signed apk. That is, export and sign your apk from Eclipse and then install locally onto your device. Otherwise, if you run an unsigned version of the application directly from the IDE, it will not work and you'll see an error.

    Note: You don't need to upload a new apk every time you make minor changes, as long as the currently uploaded draft apk was configured with the correct permissions and you published your IAP items on the dev console. The only annoying part is that you have to export and sign your application each time after making changes and run it on a device locally.

  3. Check that the versionCode of your uploaded apk has the same versionCode as your local version of the apk.

  4. You can not use your developer account to make test purchases, because Google Wallet doesn't allow you to purchase items from yourself. So you need to set up some test accounts on the Developer Console and try purchasing items from a device running the test account.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值