Skip to content Skip to sidebar Skip to footer

App Crash Caused By Data Binding Related To Java.lang.runnable Android.databinding.viewdatabinding.mrebindrunnable

The exception is the following: java.lang.NullPointerException: Attempt to read from field 'java.lang.Runnable android.databinding.ViewDataBinding.mRebindRunnable' on a null object

Solution 1:

Just in case someone has the same problem, this errors occurs when you change the tag (i.e. view.setTag(object)) of a data-binding enabled view, as the data binding library uses the tag for itself.

Solution 2:

in my case,

If I use <androidx.constraintlayout.widget.Group/> in 'merge'it gives an error on some screens.

<mergetools:parentTag="androidx.constraintlayout.widget.ConstraintLayout"><androidx.constraintlayout.widget.Groupandroid:id="@+id/constraint_group_active"android:layout_width="wrap_content"android:layout_height="wrap_content"android:visibility="@{data != null}"app:constraint_referenced_ids="txt_offering_slogan,view_extra_gift,iv_offering,txt_offering_title,txt_offering_subtitle,txt_buy_extra_gift"tools:visibility="visible" /></merge>

Post a Comment for "App Crash Caused By Data Binding Related To Java.lang.runnable Android.databinding.viewdatabinding.mrebindrunnable"