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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With