无法解析com.android.billingclient:billing:1.0
作者:互联网
我有类似的问题,如here,但在我的情况下gradle无法解决计费库v1.0,即使我将jcenter()存储库添加到构建脚本中:
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"
}
}
解决方法:
我找到了解决方案here.您需要将http://jcenter.bintray.com添加到存储库列表:
repositories {
maven { url "https://jcenter.bintray.com" }
}
标签:android,in-app-billing,android-billing,play-billing-library 来源: https://codeday.me/bug/20190627/1304550.html