【发布时间】:2018-09-19 18:00:49
【问题描述】:
当我在 gradle 中添加依赖时它显示错误:
无法解析 ':app@debug/compileClasspath' 的依赖关系:无法解析 com.github.Goodiebag:PinView:v1.3。 打开文件 显示详情
无法解析 ':app@debugAndroidTest/compileClasspath' 的依赖关系:无法解析 com.github.Goodiebag:PinView:v1.3。 打开文件 显示详情
无法解析 ':app@debugUnitTest/compileClasspath' 的依赖关系:无法解析 com.github.Goodiebag:PinView:v1.3。 打开文件 显示详情
无法解析 ':app@release/compileClasspath' 的依赖关系:无法解析 com.github.Goodiebag:PinView:v1.3。 打开文件 显示详情
无法解析 ':app@releaseUnitTest/compileClasspath' 的依赖关系:无法解析 com.github.Goodiebag:PinView:v1.3。 打开文件 显示详情
我的依赖项在这里:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.+'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:design:27.1.1'
testImplementation 'junit:junit:4.12'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.github.Goodiebag:PinView:v1.3'//this one is showing error
/*implementation 'dev.dworks.libs:volleyplus:0.1.4'*/
/*implementation 'dev.dworks.libs:volleyplus:+'*/
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
这是我的 build.gradle(项目 Cogniable)
allprojects {
repositories {
google()
jcenter()
maven{ url "https://jitpack.io" }
}
}
【问题讨论】:
-
github.com/GoodieBag/Pinview 如果这不能解释它,请显示 build.gradle 的其余部分,显示 where 设置依赖库。
-
我更新了我的 repos @jdv