I'm trying to use glide in Android Studio to add images. But when I added It, It showing me this error: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve 'com.github.bumptech.glide:glide:4.13.2'
app:gradll
dependencies
{
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26. '
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.android.support:recyclerview-v7:26. '
implementation 'com.github.bumptech.glide:glide:4.13.2'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
}
CodePudding user response:
Please check that you added this code in:
app:gradle
dependencies {
implementation 'com.github.bumptech.glide:glide:4.13.2'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
}
build:gradle
repositories {
google()
mavenCentral()
}
Also try Invalidate -> Cache Restart.