Sergei Bubenshchikov
Sergei Bubenshchikov

Reputation: 5361

Failed to resolve com.android.billingclient:billing:1.0

I have similar issue like here but in my case gradle cant't to resolve billing library v1.0 even if I add jcenter() repository into build script:

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"
    }
}

Upvotes: 4

Views: 2164

Answers (1)

Sergei Bubenshchikov
Sergei Bubenshchikov

Reputation: 5361

I found solution here. You need to add http://jcenter.bintray.com to repository list:

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

documentation button

Upvotes: 4

Related Questions