-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I started to get errors like this, after refactoring previously working code to support Android product flavors:
Caused by: io.jug6ernaut.databinding.DataBindingAdapter$BindingException: java.lang.ClassNotFoundException: com.myproject.promo.BR at io.jug6ernaut.databinding.DataBindingAdapter.createBindingAdapter(DataBindingAdapter.java:133) at io.jug6ernaut.databinding.DataBindingAdapter.setAdapter(DataBindingAdapter.java:109) at br.com.avido.uget.databinding.FragmentTicketListBinding.executeBindings(FragmentTicketListBinding.java:108) at android.databinding.ViewDataBinding.executePendingBindings(ViewDataBinding.java:355)
It came to my attention that line 24 of DataBindingAdapter.java reads:
String full_path = context.getPackageName() + "." + className;
"promo" is the name of the product flavor, so it's looking for the BR class at this location:
com.myproject.promo.BR
but maybe it should be looking at this location:
com.myproject.BR