bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.59k stars 6.12k forks source link

Build Failed - cannot access SavedStateRegistryOwner #5271

Open rajb865 opened 1 year ago

rajb865 commented 1 year ago

Glide Version: 4.13.0

Integration libraries: com.github.bumptech.glide:okhttp3-integration:4.13.0

Device/Android Version: S21

Issue details / Repro steps / Use case background: With glide:4.12.0 my android project is working fine but when I upgrade the glide:4.13.0 then my project build is failing. I am using gradle-6.8.3 for my project build.

Glide load line / GlideModule (if any) / list Adapter code (if any):

ext.kotlin_version = '1.3.21'
implementation 'com.github.bumptech.glide:glide:4.13.0'
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

error: cannot access SavedStateRegistryOwner
  class file for androidx.savedstate.SavedStateRegistryOwner not found
sjudd commented 1 year ago

This is a rather old version of Glide. Maybe there's a compatibility issue between that version of Glide and the androidx library version you're depending on?

yylx2023 commented 1 year ago

you can try the lastest version