我正按照文档中的说明,在implementation 'com.android.billingclient:billing:1.1'
文件中添加build.gradle (Module: app)
。但是,我得到了这5个错误:
Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.billingclient:billing:1.1.
Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.billingclient:billing:1.1.
Error:Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.billingclient:billing:1.1.
Error:Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.billingclient:billing:1.1.
Error:Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.billingclient:billing:1.1.
编辑:
我尝试清理项目,然后收到此错误消息。
Error:Could not resolve all files for configuration ':app:debugCompileClasspath'.
无法解析com.android.billingclient:billing:1.1。 要求: 项目:app 离线模式下没有com.android.billingclient:billing:1.1的缓存版本。 离线模式下没有com.android.billingclient:billing:1.1的缓存版本。