Glide is currently written version 4.11.0, about the version of the specific introduction: Mo, I really did not find its version description, we can find the address to leave a message. Min Sdk Version – Using Glide requires Min Sdk Version API 14 (Ice Cream Sandwich) or higher. Compile Sdk version-Glide must be compiled using API 27 (Oreo MR1) or higher Sdk. Then there is the official document: simplified Chinese document
Add the dependent
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com. Making. Bumptech. Glide: glide: 4.11.0'
annotationProcessor 'com. Making. Bumptech. Glide: the compiler: 4.11.0'To use Glide annotation in Kotlin's class, you need to introduce a kapt dependency instead of the regular annotationProcessor dependency: kapt'com. Making. Bumptech. Glide: the compiler: 4.11.0'
}
Copy the code
Also include the kotlin-kapt plugin in build.gradle:
apply plugin: 'kotlin-kapt'
Copy the code