Referable links but didn't work for me:
I'm use Android Studio 3.1.2
I am trying to find Google Play Billing Library in this Studio but didn't find it.
Also i'm Put Library in build.gradle(app):
implementation 'com.android.billingclient:billing:1.1'
Gradle Build Successfull but didn't show the Google Play Billing Library in SDK Manager
Below is build.gradle(app)
:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
The reason why you can't find billing library in your sdk is because according to google official blog:
you will find that Play Billing Library is available through Maven repository now that's why you can't find it on your sdk.
so now you start by adding billing library as a dependency. and then move ahead.
implementation 'com.android.billingclient:billing:1.1'
And also google have given the coding sample to get you started with:
https://codelabs.developers.google.com/codelabs/play-billing-codelab/#0
moreover you can find some explanation in this answer too:
Why is the Google Play Billing Library not shown up in the SDK Manager?