glide.with无法引用,无解析到“Glide”,报错:glide.with(context) Cannot resolve symbol 'Glide'。
此报错是缺少依赖包引用,在“build.gradle.kts”的文件中引入“com.github.bumptech.glide:glide:4.16.0”。如下图片和代码:

引入代码:
java
implementation 'com.github.bumptech.glide:glide:4.16.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
kts
implementation ("com.github.bumptech.glide:glide:4.16.0")
annotationProcessor ("com.github.bumptech.glide:compiler:4.16.0")
将依赖包“com.github.bumptech.glide:compiler:4.16.0”引入配置后,需要在“Android Studio”的“File”菜单中的“Sync Project with Gradle Files”刷第三方库同步Gradle配置的操作。
