title: android:kotlin how to solve databinding error
body: <p>Im using kotlin with android vision api for face detection.The build fails when I try to run the project.It looks like this<a href="https://i.stack.imgur.com/Cq3U4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cq3U4.png" alt="enter image description here"></a></p>
  
  <p>It gives <strong>kotlin compilation errors</strong>.I suppose there must be some version conflicts with respect to kotlin databinding , gradle etc.I tried various answers in the stackoverflow posts like <a href="https://stackoverflow.com/questions/46521478/android-kotlin-error-unresolved-reference-databinding-activitymainbinding">this</a>  but can't find the solution.</p>
  
  <p><strong>This is my build.gradle(app)</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  apply plugin: 'kotlin-android'
  
  apply plugin: 'kotlin-android-extensions'
  
  apply plugin: 'kotlin-kapt'
  
  android {
  compileSdkVersion 27
  buildToolsVersion '28.0.3'
  defaultConfig {
      applicationId "com.android.ex1"
      minSdkVersion 16
      targetSdkVersion 27
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner         "android.support.test.runner.AndroidJUnitRunner"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  
  dataBinding {
      enabled = true
  }
  }
  
  dependencies {
  implementation fileTree(dir: 'libs', include: ['*.jar'])
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  testImplementation 'junit:junit:4.12'
  androidTestImplementation 'com.android.support.test:runner:1.0.1'
  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  
  implementation 'com.android.support:appcompat-v7:27.1.1'
  implementation 'com.android.support:design:27.1.1'
  implementation 'com.google.android.gms:play-services-vision:11.8.0'
  kapt "com.android.databinding:compiler:3.2.0-alpha10"
  
  implementation "android.arch.persistence.room:runtime:1.0.0"
  kapt "android.arch.persistence.room:compiler:1.0.0"
  }
  </code></pre>
  
  <p><strong>This is my build.gradle(root)</strong></p>
  
  <pre><code>buildscript {
  ext.kotlin_version = '1.3.10'
  ext.gradle_version = '3.2.0-alpha10'
  repositories {
      google()
      jcenter()
      maven { url "https://maven.google.com" }
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:3.3.1'
      classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.10"
      classpath 'com.google.gms:google-services:4.2.0'
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
  }
  }
  
  allprojects {
  repositories {
      google()
      jcenter()
      maven { url "https://maven.google.com" }
  }
  }
  
  task delete(type: Delete) {
  delete rootProject.buildDir
  }
  </code></pre>
  
  <p>Any help will be really useful.Thanks in advance!!</p>