问题描述
我在本地获取了应用内订阅产品的错误测试。
我能够检查产品的库存,但不应该也是能够购买它?
有很多关于为什么可能会发生这种错误的帖子,我认为这是可以解决的: 是通过beta / alpha通道测试实际购买量的唯一方法 - 不是从android studio直接购买。这篇文章表明它可能(见屏幕截图)
我在本地获取了应用内订阅产品的错误测试。
我能够检查产品的库存,但不应该也是能够购买它?
有很多关于为什么可能会发生这种错误的帖子,我认为这是可以解决的: 是通过beta / alpha通道测试实际购买量的唯一方法 - 不是从android studio直接购买。这篇文章表明它可能(见屏幕截图)
以下是使用 Android Studio
签署的apk附加步骤:
我在Windows上。它有助于在PATH中拥有 adb.exe
,对我来说就是:
AndroidManifest.xml $ c中发布,并确保它可以从Play商店的已安装版本运行。 $ c $> $ 应用程序
节点
从Android Studio生成已签名的APK
连接设备以进行USB调试。删除当前安装:
运行
菜单中,最后一个选项是将调试器附加到Android Process - 选择您的设备。您正在调试。NB 对于应用内结算,版本号需要与当前版本号匹配发布在Play商店
I am getting this error testing in-app subscription products locally.
I was able to check the the inventory for the product but shouldn't I also be able to purchase it?
There are a number of posts about why this error might occur which I thought were addressed:
Is the only way to test actual purchases via the beta/alpha channels - not straight from android studio. This post suggests it possible (see screen shot)
http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-test
In essence, in-app billing payments can only be tested with a release-signed apk (the one we upload to Google Play Console).
Here are some steps that got me attached to a signed apk with Android Studio
:
I'm on Windows. It helps having adb.exe
in the PATH, for me that's:
AndroidManifest.xml
under application
nodeAnd in your build.gradle
file under android > buildTypes > release
, add:
Generate a signed APK from Android Studio
Attach your device for USB debugging. Remove current install:
Run
menu, last option is "Attach debugger to Android Process" - select your device. You are now debugging.NB for in-app billing the build number needs to match the one currently published on Play Store
这篇关于是否可以在Android Studio中本地调试Google Play的应用内结算?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!