Latest version of Glide giving dependency error
Solution 1
I faced the same issue, but using this solved it :
compile('com.github.bumptech.glide:glide:4.4.0@aar') {
transitive = true;
}
To pull in the annotations module which contains @GlideModule, you have to use transitive = true
Solution 2
This is may be glide issue so, I will prefer to don't update glide to com.github.bumptech.glide:glide:4.4.0
till now. you can use older version like com.github.bumptech.glide:glide:4.3.1
or com.github.bumptech.glide:glide:4.3.0
or com.github.bumptech.glide:glide:4.2.0
you can read more about these issues on
Solution 3
Just use this in app.gradle and you are done :
compile 'com.github.bumptech.glide:glide:3.7.0'
![Ezio](https://i.stack.imgur.com/rCU6z.jpg?s=256&g=1)
Ezio
I am a software development engineer having experience in Android. Currently working on designing and developing scalable and distributed backend systems at Flipkart. Linkedin: www.linkedin.com/in/bantykumar Leetcode: www.leetcode.com/banty
Updated on June 16, 2022Comments
-
Ezio about 2 years
I have upgraded the version of Glide from 4.0.0-RC0 to 4.4.0. But it is giving me an error saying
Error:Module 'com.github.bumptech.glide:glide:4.4.0' depends on one or more Android Libraries but is a jar
It is not saying which jar or any other information. Does anybody know how to fix this? I am also attaching the entries for Glide in my build.gradle
compile 'com.github.bumptech.glide:glide:4.4.0' compile 'com.github.bumptech.glide:okhttp3-integration:4.4.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0' compile 'com.github.bumptech.glide:annotations:4.4.0'
EDIT : I am using the support library version 27.0.1
-
Ezio over 6 yearsThis is not the answer. it is the same thing that I have, "implementation" is introduced in latest gradle version. I dont have any issues with my gradle version.
-
Bill Bunting over 6 yearsworks for 4.4.0 but not 4.6.0. I will revert back to 4.4. thanks.