I have following fragment class written in Java using the new databinding library
import com.example.app.databinding.FragmentDataBdinding;
public class Data
To Solve the problem, you have to put
apply plugin: 'kotlin-kapt'
at the top of build.gradle (Module: app), then put this line in dependencies
kapt "com.android.databinding:compiler:[YOUR_ANDROID_PLUGIN_VERSION]"
You can find android plugin version by go to menu
File > Project Structure > Project
Then Sync Again. If you see this warning, ignore it.
3rd-party Gradle plug-ins may be the cause