gpt4 book ai didi

java - 如何解决此问题 "Unable to resolve dependency for ' :app@debug/compileClasspath': Could not resolve com. github.Goodiebag :PinView:v1. 3。”

转载 作者:行者123 更新时间:2023-12-03 03:24:23 27 4
gpt4 key购买 nike

当我在 gradle 中添加依赖项时,它显示错误:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

我的依赖项在这里:

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" }
}
}

最佳答案

  1. 确保您的互联网连接已开启

  2. 您的 Android Studio 未处于离线模式

如果以上两个正确,则执行以下操作:在您的 build.gradle(项目级别) 中添加此 maven { url "https://jitpack.io"}在 repositories block 下,该 block 位于 allprojects block 下,因此您的 build.gradle allprojects block 代码应如下所示:

allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}

关于java - 如何解决此问题 "Unable to resolve dependency for ' :app@debug/compileClasspath': Could not resolve com. github.Goodiebag :PinView:v1. 3。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52411720/

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