我正在嘗試在 Android Studio 中使用 glide 添加影像。但是當我添加它時,它向我顯示了這個錯誤:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve 'com.github.bumptech.glide:glide:4.13.2'
應用程式: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'
}
uj5u.com熱心網友回復:
請檢查您是否在以下位置添加了此代碼:
應用程式:gradle
dependencies {
implementation 'com.github.bumptech.glide:glide:4.13.2'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
}
構建:gradle
repositories {
google()
mavenCentral()
}
也嘗試無效-> 快取重啟。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/509873.html
標籤:爪哇安卓毕业典礼
