解决glide与jetpack冲突的问题

作者: hglfNg | 来源:发表于2019-01-02 14:49 被阅读5次
  • 时间
    2019-1-2

  • 问题描述
    glide compier生成的class文件中@NonNull注解的包名依然是
    android.support.annotation.* 会提示android.support.annotation.NonNull 未找到实际上该类已迁移到androidx.annotation.nonnull

  • 解决办法

implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'androidx.annotation:annotation:1.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
android.enableJetifier=true
android.useAndroidX=true

亲测有效

原文地址: 《解决glide与jetpack冲突的问题》[https://www.jianshu.com/p/3a1c89bf1bee), 转载请注明出处

相关文章

网友评论

    本文标题:解决glide与jetpack冲突的问题

    本文链接:https://www.haomeiwen.com/subject/hfyzlqtx.html