为什么 SDK 管理器中未显示 Google Play 结算库? [英] Why is the Google Play Billing Library not shown up in the SDK Manager?

查看:24
本文介绍了为什么 SDK 管理器中未显示 Google Play 结算库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个带有应用内购买的 android 应用程序,我经常读到我必须从 SDK 管理器下载 Google Play 计费库

(例如

谢谢!!!

解决方案

检查官方博客:

<块引用>

Play 计费库可通过 Maven 存储库获得

只需添加:

依赖项{...编译'com.android.billingclient:billing:1.0'}

您可以在官方文档中找到有关该库的更多详细信息.

I'd like to make an android application with in app purchases, I read often that I have to download the Google Play Billing Library from SDK Manager

(e.g. http://www.techotopia.com/index.php/An_Android_Studio_Google_Play_In-app_Billing_Tutorial#Installing_the_Google_Play_Billing_Library ), but I can't find it there. Does I need this file? If yes, how can I manage that it is shown to me? On the developers.android webside is nothing written of the Google Play Billing Library, but if I copy their sample code to my project, I get many errors. I searched for Example projects for example on github, I found one, but when I run it, the app crashes. Is there any sample project, I think this would solve my problems?

THANKS !!!

解决方案

Checking the offical blog:

Play Billing Library is available through Maven repository

Just add:

dependencies {
    ...
    compile 'com.android.billingclient:billing:1.0'
}

You can find more details about the library in the official doc.

这篇关于为什么 SDK 管理器中未显示 Google Play 结算库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆