I have following fragment class written in Java using the new databinding library
import com.example.app.databinding.FragmentDataBdinding; public class Data
In my case, adding
kapt { generateStubs = true }
Solved the problem for me. I ignored it the first time, I thought it's irrelevant to the problem:
Unresolved reference databinding
But now, data-binding is working just fine.