我已经将 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
它没有说明哪个 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 给出依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47675284/