title: Unresolved Reference : FragmentTitleBinding
body: <p>I want to use fragments in my android application but I can't import <code>FragmentTitleBinding</code> in my fragment class I tried all possible solutions on the internet </p>
  
  <ol>
  <li>I checked layout tags in xml file </li>
  <li>I edit build.gradle file</li>
  <li>sync project </li>
  </ol>
  
  <pre><code>import com.example.android.navigation.databinding.FragmentTitleBinding
  
  class TitleFragment : Fragment() {
  
  override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                            savedInstanceState: Bundle?): View? {
      val binding : com.example.android.navigation.databinding.FragmentTitleBinding=
              DataBindingUtil.inflate(inflater,R.layout.fragment_title,container,false)
      return binding.root;
      }
  }
  </code></pre>
  
  <p><em>Fragment XML</em></p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context="com.example.android.navigation.TitleFragment"&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:id="@+id/titleConstraint"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;Button
              android:id="@+id/playButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginStart="@dimen/horizontal_margin"
              android:layout_marginEnd="@dimen/horizontal_margin"
              android:paddingStart="@dimen/button_padding"
              android:paddingEnd="@dimen/button_padding"
              android:text="Play"
              android:textColor="@color/colorAccent"
              android:textSize="@dimen/button_text_size"
              android:textStyle="bold"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/titleImage" /&gt;
  
              &lt;ImageView
              android:id="@+id/titleImage"
              android:layout_width="0dp"
              android:layout_height="@dimen/image_header_height"
              android:layout_marginStart="@dimen/horizontal_margin"
              android:layout_marginEnd="@dimen/horizontal_margin"
              android:scaleType="fitCenter"
              app:layout_constraintBottom_toTopOf="@+id/playButton"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintHorizontal_bias="1.0"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent"
              app:srcCompat="@drawable/android_trivia" /&gt;
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p><em>build.gradle</em></p>
  
  <pre><code>  apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-kapt'
  apply plugin: 'kotlin-android-extensions'
  
  android {
      compileSdkVersion 28
      dataBinding {
          enabled = true
      }
      defaultConfig {
          applicationId 'com.example.android.navigation'
          minSdkVersion 19
          targetSdkVersion 28
          vectorDrawables.useSupportLibrary = true
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      productFlavors {
      }
      buildToolsVersion = '28.0.3'
  }
  
  dependencies {
      implementation fileTree(include: ['*.jar'], dir: 'libs')
      // Kotlin
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$version_kotlin"
      // Constraint Layout
      implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout"
      // Core
      implementation "androidx.core:core:$version_core"
      // Material Design
      implementation "com.google.android.material:material:$version_material"
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      kapt 'com.android.databinding:compiler:3.3.0'
  }
  kapt {
      generateStubs = true
  }
  </code></pre>
  
  <p>I want to resolved <code>FragmentTitleBinding</code> but it gives an error unresolved reference</p>