【问题标题】:GlideApp not working After Migrating to AndroidX迁移到 AndroidX 后 GlideApp 无法正常工作
【发布时间】:2019-07-10 05:09:43
【问题描述】:

GlideApp 在迁移到 AndroidX 后无法运行。 我尝试使用 Kapt 作为annotationProccessor,将 GlideApp 4.8.0 更改为 4.9.0

implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.browser:browser:1.0.0'
implementation 'androidx.mediarouter:mediarouter:1.0.0'
implementation 'com.github.rubensousa:gravitysnaphelper:1.0'
implementation 'com.gordonwong:material-sheet-fab:1.2.1'
implementation 'com.github.dv-ha:floatingsearchview:v1.0.4'
implementation 'com.lapism:searchview:4.0'
implementation 'com.crystal:crystalrangeseekbar:1.1.1'
implementation 'com.firebaseui:firebase-ui-storage:3.3.1'
implementation 'com.firebaseui:firebase-ui-auth:3.3.1'
implementation 'com.firebaseui:firebase-ui-database:3.3.1'
implementation 'com.wdullaer:materialdatetimepicker:3.2.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'commons-net:commons-net:3.3'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

面临错误:错误:找不到符号类 GlideApp

【问题讨论】:

  • 您能更新一下您遇到的错误类型吗?
  • 显示你的 logcat 和代码
  • implementation('com.github.bumptech.glide:glide:4.7.1') { exclude group: "com.android.support" }
  • 错误:找不到符号类 GlideApp

标签: android androidx appglidemodule


【解决方案1】:

在您的应用级 build.gradle 中添加以下行

implementation 'com.android.support:support-annotations:28.0.0-alpha3'
annotationProcessor 'com.android.support:support-annotations:28.0.0-alpha3'

【讨论】:

    猜你喜欢
    • 2019-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-18
    • 2013-07-07
    相关资源
    最近更新 更多