Reputation: 2985
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
Upvotes: 4
Views: 14806
Reputation: 887
Just use this in app.gradle and you are done :
compile 'com.github.bumptech.glide:glide:3.7.0'
Upvotes: 1
Reputation: 1
implementation 'com.github.bumptech.glide:glide:4.0.0-RC0'
Once check with this dependencies for latest android studio 3.0.2 this dependencies build proper gradle.
Upvotes: 0
Reputation: 2500
Just need to do these steps to avoid this error:
1 - update your sdk version to 27
2 - In your dependencies in build.gradle:
implementation('com.github.bumptech.glide:glide:4.6.1') {
exclude group: "com.android.support"
}
And you are good to go as this one resolved my issue.
Upvotes: 0
Reputation: 942
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
Upvotes: 5
Reputation: 2301
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
Upvotes: 2
Reputation: 366
You can use it like this in your build. Simply:
dependencies {
implementation 'com.github.bumptech.glide:glide:4.4.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'
}
Upvotes: -1