I added glide 4.8.0 library to my android studio project successfully. But when I check gradle offline work and run project I faced with this error:
"No cached version of com.github.bumptech.glide:compiler:4.8.0 available for offline mode". Disable Gradle 'offline mode' and sync project
I want gradle stay in offline work mode. I added glide library to my project like bellow in build.gradle(app level):
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
and project level of build.gradle is:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}