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 I only forgot to add in layout file the header:
....