Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not resolve com.android.billingclient:billing:1.1

i started a brand new Project in Android Studio to try to add the billing library. but when i add the dependency implementation 'com.android.billingclient:billing:1.1' and sync gradle i get this errors:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.billingclient:billing:1.1. Open File Show Details Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.billingclient:billing:1.1. Open File Show Details Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.billingclient:billing:1.1. Open File Show Details Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.billingclient:billing:1.1. Open File Show Details Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.billingclient:billing:1.1. Open File Show Details

here is my gradle: enter image description here

like image 480
korchix Avatar asked Sep 12 '25 17:09

korchix


1 Answers

Modify your project(not module) build.gradle file:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jcenter.bintray.com" } //add this line
    }
} 

and Sync project with Gradle files again.

like image 132
navylover Avatar answered Sep 15 '25 09:09

navylover