无法解析com.android.billingclient:billing:1.0

时间:2018-04-09 05:04:32

标签: android in-app-billing android-billing play-billing-library

我有类似here的类似问题,但在我的情况下,即使我将jcenter()存储库添加到构建脚本中,也无法解决计费库v1.0:

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        google()
        jcenter()
        maven {url "https://maven.fabric.io/public"}
    }
    dependencies {
       classpath "com.android.tools.build:gradle:3.1.0"
       classpath "com.google.gms:google-services:3.1.0"
       classpath "io.fabric.tools:gradle:1.24.4"
    }
}

1 个答案:

答案 0 :(得分:3)

我找到了解决方案here。您需要将http://jcenter.bintray.com添加到存储库列表:

repositories {
    maven { url "https://jcenter.bintray.com" }
}

documentation button