Невозможно разрешить зависимость для ': app @ debug / compileClasspath': не удалось разрешить com.daimajia.slider: library: 1.1.5 - PullRequest
0 голосов
/ 14 декабря 2018

Я пытаюсь использовать библиотеку 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'

1 Ответ

0 голосов
/ 14 декабря 2018
  1. Попробуйте File->Invalidate Caches and Restart->Invalidate and Restart

  2. Если не повезет, попробуйте File->Other Settings->Default Settings->Build, Execution, Deployment->Build Tools->Gradle->Offline work и снимите флажок.

...