无法解析 ':app@debug/compileClasspath' 的依赖关系:无法解析 com.daimajia.slider:library:1.1.5
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.daimajia.slider:library:1.1.5
我尝试使用 AndroidImageSlider 库但收到此错误:
Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.daimajia.slider:library:1.1.5.
在我的 build.gradle
中有这种依赖
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
尝试File->Invalidate Caches and Restart->Invalidate and Restart
如果运气不好试试,File->Other Settings->Default Settings->Build, Execution, Deployment->Build Tools->Gradle->Offline work
然后取消勾选。
我尝试使用 AndroidImageSlider 库但收到此错误:
Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.daimajia.slider:library:1.1.5.
在我的 build.gradle
中有这种依赖implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
尝试
File->Invalidate Caches and Restart->Invalidate and Restart
如果运气不好试试,
File->Other Settings->Default Settings->Build, Execution, Deployment->Build Tools->Gradle->Offline work
然后取消勾选。