gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 12:27:06 25 4
gpt4 key购买 nike

我已经将 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com