gpt4 book ai didi

android - 无法解析 com.android.billingclient :billing:1. 1

转载 作者:太空狗 更新时间:2023-10-29 13:03:17 27 4
gpt4 key购买 nike

我在 Android Studio 中启动了一个全新的项目来尝试添加计费库。但是当我添加依赖项 implementation 'com.android.billingclient:billing:1.1' 和 sync gradle 我得到这个错误:

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

这是我的gradle: enter image description here

最佳答案

修改您的项目(不是模块) build.gradle 文件:

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

并再次将项目与 Gradle 文件同步

关于android - 无法解析 com.android.billingclient :billing:1. 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52353442/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com