可参考的链接,但对我不起作用:
我正在使用 Android Studio 3.1.2
我正在尝试在此 Studio 中查找Google Play 结算库,但没有找到。
我也将库放在 build.gradle(app) 中:
implementation 'com.android.billingclient:billing:1.1'
Gradle 构建成功,但未在 SDK 管理器中显示 Google Play 计费库
请参见下面的 SDK 管理器对话框截图:
下面是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
}