Failed to resolve variable '${animal.sniffer.version}' when migrate to AndroidX

前端 未结 16 996
轻奢々
轻奢々 2021-01-30 04:36

I\'m using Android Studio 3.2 Beta5 to migrate my project to AndroidX. When I rebuild my app I got these errors:

ERROR: [TA

16条回答
  •  不思量自难忘°
    2021-01-30 05:15

    It seems to be Glide the problem.

    I had the same error and I just updated the Glide's dependencies to 4.8 and there is no build errors.

    Kotlin :

    // Glide
    def glide_version = "4.8.0"
    implementation "com.github.bumptech.glide:glide:$glide_version"
    kapt "com.github.bumptech.glide:compiler:$glide_version"
    

    Java :

    // Glide
    def glide_version = "4.8.0"
    implementation "com.github.bumptech.glide:glide:$glide_version"
    annotationProcessor "com.github.bumptech.glide:compiler:$glide_version"
    

    Be sure to have enabled in your gradle.properties :

    android.useAndroidX=true
    android.enableJetifier=true
    

    Source : https://github.com/bumptech/glide/issues/3124

    Hope this will help you!

提交回复
热议问题