androidbroadcast / ViewBindingPropertyDelegate

Make work with Android View Binding simpler
https://proandroiddev.com/make-android-view-binding-great-with-kotlin-b71dd9c87719
Apache License 2.0
1.42k stars 102 forks source link

java.lang.IllegalStateException: Host view isn't ready to create a ViewBinding instance #96

Closed xaldarof closed 2 years ago

xaldarof commented 2 years ago

https://gist.github.com/xaldarof/09cf823f1e22a8b45cb52480f42eb85e

kirich1409 commented 2 years ago

It will be better to see code. Possible reason that you try to access viewBinding before View was created. Add check if (view != null) before access to the viewBinding

davidgerka commented 2 years ago

hey,i find the error,can you fix it,thanks

1 2

kirich1409 commented 2 years ago

I've tried to reproduce with the latest version (1.5.6). Everything work as expected. Did you use the latest version?

davidgerka commented 2 years ago

oh,i use the 1.5.3 version, because i see the latest version is 1.5.3. 1.5.6 is OK! thank you very much !😁