Glide 4.x找不到AppGlideModule

翻阅Release日志:https://github.com/bumptech/glide/releases

查看Glide 4.5.0 Release更新日志:Glide must be compiled against API 27

也就是说:Glide 4.5.0及以上版本不能使用API 27及以上版本的SDK编译

  • 如果非得使用API 27及以上版本编译,可以使用Glide 4.4.0版本
  • 如果非得使用Glide最新版本,可以使用API 26进行编译
dependencies {
  implementation "com.github.bumptech.glide:glide:4.4.0"
  annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'
}

参考:http://bumptech.github.io/glide/doc/download-setup.html#android-sdk-requirements

Android SDK Requirements

Minimum SDK Version – Glide requires a minimum SDK version of 14 (Ice Cream Sandwich) or higher.

Compile SDK Version – Glide must be compiled against SDK version 27 (Oreo MR1) or higher.

Support Library Version – Glide uses support library version 27.

If you need or would prefer to use a different version of the support library you should exclude "com.android.support" from your Glide dependency in your build.gradle file. For example, if you’d like to use v26 of the support library:

dependencies {
  implementation ("com.github.bumptech.glide:glide:4.7.1") {
    exclude group: "com.android.support"
  }
  implementation "com.android.support:support-fragment:26.1.0"
}
上一篇 Android组件化开发之动态权限请求封装
下一篇 解决OKHttp报java.lang.IllegalStateException closed
目录
文章列表
1 Java实现微信退款报错unexpected end of file from server
Java实现微信退款报错unexpected end of file from server
2
Windows端5款MySQL客户端工具
Windows端5款MySQL客户端工具
3
Android接入Firebase推送不执行onMessageReceived方法
Android接入Firebase推送不执行onMessageReceived方法
4
Swift UI - 日期选择控件(UIDatePicker)
Swift UI - 日期选择控件(UIDatePicker)
5
MySQL 正则表达式
MySQL 正则表达式
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。