After adding the latest gradle 4.1.1:
compile 'com.github.bumptech.glide:glide:4.1.1'
compile 'com.android.support:support-v4:25.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
It says failed to resolve annotationProcessor. I need to revert to 4.0.0 release to make this work
@deejaygeekout me too.
If you change compile 'com.android.support:support-v4:25.3.1' to compile 'com.android.support:support-v4:26.0.2' does that work? Can you provide a full stack trace or error message? Are you building with gradle or Android Studio?
Do you have a sample app you could attach that reproduces this? I've tried this in a couple of sample apps where I just create a new one using the Android Studio template and add v4.1.1 as a dependency and it works for me.
I did also try adding compile 'com.android.support:support-v4:25.3.1' to one of the sample apps and I'm still able to build without an error.
One other thought, have you followed https://developer.android.com/topic/libraries/support-library/setup.html?
In particular you may need to add:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
Glide4.1.1 still not available ! But Glide4.0.0 is ok
@sjudd Add maven {url "https://maven.google.com"}, and changed the support library to 26.0.2 worked.But the support library-26.0.2 can not download through sdk manager.Add maven url and sync project,the library will auto download.
I think we've found a solution here and the documentation (README and docs page) are updated, closing this for now.
I got and solved the issue : Failed to resolve: com.android.support:support-annotations:26.0.2
first step:adding google() below jcenter()
second step: change the compile and build sdk to lastest 26 and 26.0.2
third step: change to gradle-4.2.1-all.zip in the gradle_wrapper.properties file
fourth step: adding classpath 'com.android.tools.build:gradle:2.3.3'
call my phone if you got concern:18221650910
Most helpful comment
One other thought, have you followed https://developer.android.com/topic/libraries/support-library/setup.html?
In particular you may need to add: