这里假如你已经有上架Google play的app,准备对接应用内商品(非订阅)
设置 Google Play 开发者帐号
在 Google 付款中心设置付款资料
在 Google Play 管理中心内启用结算相关功能
设置开发者帐号后,您必须发布包含 Google Play 结算库的应用版本。如需在 Google Play 管理中心启用结算相关功能(如配置您要销售的商品),必须执行此步骤。
添加库依赖项
将依赖项添加到应用的 build.gradle 文件中,如下所示:
dependencies {
def billing_version = "5.0.0"
impleme...