+-
android – 最新版本的Glide给出依赖性错误
我已将Glide的版本从4.0.0-RC0升级到4.4.0.但它给我一个错误的说法

Error:Module 'com.github.bumptech.glide:glide:4.4.0' depends on one or more Android Libraries but is a jar

它不是说哪个罐子或任何其他信息.
有人知道如何解决这个问题吗?我还在build.gradle中附加了Glide的条目

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'

编辑:我正在使用支持库版本27.0.1

最佳答案
我遇到了同样的问题,但使用它解决了它:

compile('com.github.bumptech.glide:glide:4.4.0@aar') {
    transitive = true;
}

要引入包含@GlideModule的注释模块,必须使用transitive = true

点击查看更多相关文章

转载注明原文:android – 最新版本的Glide给出依赖性错误 - 乐贴网