集成Google Play 支付,缺失 IInAppBillingService.aidl 或 Google Play Billing Library

1.谷歌Play支付的官方中文文档是个渣

源文档地址: https://developer.android.com/google/play/billing/billing_integrate.html?hl=zh-cn

英文版的,至少会给出一个GitHub的示例链接。而中文版的什么都没有提供,吗的瞧不起中国人是不是?

2.SDK Manager中根本没有 Google Play Billing Library

3.网上有提到这个:compile ‘com.android.billingclient:billing:1.0’

在stackOverFlow上面:https://stackoverflow.com/questions/46391543/why-is-the-google-play-billing-library-not-shown-up-in-the-sdk-manager

但是我觉得这版本应该是非常过期的。暂时没有采取使用。(以后可以回头再试用一下)

4.正确解决这个棘手问题的方法:

找到英文版说明 的示例项目:https://github.com/googlesamples/android-play-billing/tree/master/TrivialDrive

然后在分支:https://github.com/googlesamples/android-play-billing/tree/master/TrivialDrive/app/src/main/aidl/com/android/vending/billing

找到了:IInAppBillingService.aidl这个文件 【点击可直接下载。】

猜你喜欢

转载自blog.csdn.net/hanshou101/article/details/78668203
今日推荐