【发布时间】:2018-05-20 09:25:56
【问题描述】:
我已将 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
【问题讨论】:
-
你已经把 annotationyProcessor 行放了 2 次span>
-
问这个问题时这是一个错字,它不在我的代码中。现在编辑问题。
-
问题在于 Glide ,github.com/bumptech/glide/issues/2318 ,尝试 4.3.1 版本我没有任何问题
-
@Redman 我能够修复依赖错误,但现在应用程序崩溃并出现以下错误:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/gifdecoder/GifDecoder$BitmapProvider;我需要使用最新版本的 Glide 来支持我的应用程序中的一些复杂动画,这就是我试图让这个东西工作的原因。
-
你试过用
compile('com.github.bumptech.glide:glide:4.4.0@aar') { transitive = true; }导入Glide
标签: android gradle android-glide