You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've made the update to 1.2.0 but since then when I switch from a fragment to another fragment I get this error
I'm using databinding (not viewbinding) however I've enabled it in my gradle as in the README.
Here is my gradle:
buildFeatures {
dataBinding =true
viewBinding =true
}
dependencies {
implementation 'com.kirich1409.viewbindingpropertydelegate:viewbindingpropertydelegate:1.2.0'// To use only without reflection variants of viewBinding
implementation 'com.kirich1409.viewbindingpropertydelegate:vbpd-noreflection:1.2.0'
}
java.lang.IllegalStateException: Instance of ViewBindingProperty can't be shared between classes
at by.kirich1409.viewbindingdelegate.ViewBindingProperty.getValue(ViewBindingProperty.kt:29)
at com.application.poc.ui.search.SearchFragment.getBinding(Unknown Source:7)
at com.application.poc.ui.search.SearchFragment.onDestroyView(SearchFragment.kt:103)
at androidx.fragment.app.Fragment.performDestroyView(Fragment.java:2909)
at androidx.fragment.app.FragmentManager.destroyFragmentView(FragmentManager.java:1356)
at androidx.fragment.app.FragmentManager.removeCancellationSignal(FragmentManager.java:742)
at androidx.fragment.app.FragmentManager$2.onComplete(FragmentManager.java:370)
at androidx.fragment.app.FragmentAnim$2$1.run(FragmentAnim.java:175)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Hello, I've made the update to 1.2.0 but since then when I switch from a fragment to another fragment I get this error
I'm using databinding (not viewbinding) however I've enabled it in my gradle as in the README.
Here is my gradle:
Here is the code:
The text was updated successfully, but these errors were encountered: