Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latest version of Glide giving dependency error

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

like image 942
Ezio Avatar asked Mar 07 '23 10:03

Ezio


2 Answers

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

like image 62
Gomez NL Avatar answered Mar 10 '23 11:03

Gomez NL


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

issue 2318

issue 2319

like image 26
Upendra Shah Avatar answered Mar 10 '23 10:03

Upendra Shah