Why is the Google Play Billing Library not shown up in the SDK Manager?

user7940193 picture user7940193 · Sep 24, 2017 · Viewed 7.6k times · Source

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?

My SDK Manager

THANKS !!!

Answer

Gabriele Mariotti picture Gabriele Mariotti · Sep 24, 2017

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.