ericktijerou / koleton

The easiest library to show skeleton screens in an Android app.
Apache License 2.0
304 stars 26 forks source link

koleton.custom.RecyclerKoletonView cannot be cast to androidx.recyclerview.widget.RecyclerView #24

Closed keivanshamlu closed 3 years ago

keivanshamlu commented 4 years ago

Undeliverable exception received, not sure what to do io.reactivex.exceptions.OnErrorNotImplementedException: koleton.custom.RecyclerKoletonView cannot be cast to androidx.recyclerview.widget.RecyclerView

hello , i'm trying to hide skleton from a view when api response received but when i call view.hideSkleton() i get this error ...

ericktijerou commented 3 years ago

Hi! @keivanshamlu.

Sorry for the late reply.

I couldn't reproduce this issue. Can you please provide more information about your code?

Thank you for your feedback. It is appreciated.

yesidlazaro commented 3 years ago

i have same issue with android studio 4.2.1 kotlin 1.5.0 an recyclerview 1.2.0

yesidlazaro commented 3 years ago

@ericktijerou

yesidlazaro commented 3 years ago

@keivanshamlu i just downgraded to kotlin 1.4.30 and there is no crash. be careful updating your build tools

billypap1 commented 3 years ago

@ericktijerou @yesidlazaro @keivanshamlu Same issue here, with android studio 4.2.1 kotlin 1.5.0. I get this error in any type of view. Any other idea instead of downgrading version of Koltin?

ericktijerou commented 3 years ago

Hi @yesidlazaro @billypap1 @keivanshamlu. Sorry for the inconvenience.

I updated to Kotlin 1.5.10version

Thank you for your feedback, i appreciate it.