Databinding Error: old values should be followed by new values. Parameter 2 must be the same type as parameter 3

Error is within your BindingAdapter, it should be

@BindingAdapter({"created_by","created_at"})
public static void setDetailCreated(TextView textView, String createdBy, long createdAt){

}

all the values should be comma seperated and in double quotes.


In Kotlin it looks like this for me:

@BindingAdapter("created_by", "created_at")
@JvmStatic fun setDetailCreated(textView: TextView, createdBy: String, createdAt: Long){
    // do stuff
}