最新版本的Glide给出依赖性错误

Ezi*_*zio 3 android gradle 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
Run Code Online (Sandbox Code Playgroud)

它不是说哪个罐子或任何其他信息.有人知道如何解决这个问题吗?我还在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'
Run Code Online (Sandbox Code Playgroud)

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

Gom*_* NL 5

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

compile('com.github.bumptech.glide:glide:4.4.0@aar') {
    transitive = true;
}
Run Code Online (Sandbox Code Playgroud)

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