title: Data binding:ButterKnife, Kotlin: Not generate Binding file
body: <p>Android Studio 3.0</p>
  
  <p>in project/build.gradle:</p>
  
  <pre><code>classpath 'com.android.tools.build:gradle:3.0.1'
  </code></pre>
  
  <p>in app/build.gradle:</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://maven.fabric.io/public' }
      }
  
      dependencies {
          classpath 'io.fabric.tools:gradle:1.+'
      }
  }
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-kapt'
  apply plugin: 'realm-android'
  
  def keystoreProperties = new Properties()
  keystoreProperties.load(new FileInputStream(rootProject.file("app/keystore.properties")))
  
  android {
      dataBinding {
          enabled = true
      }
      compileSdkVersion 26
      defaultConfig {
          applicationId "com.myproject.android.customer"
          minSdkVersion 15
          targetSdkVersion 26
          versionCode 1
          versionName "0.1.1"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  
          //multiDexEnabled true
      }
      signingConfigs {
          release {
              keyAlias keystoreProperties['KEY_ALIAS_RELEASE']
              keyPassword keystoreProperties['KEY_PASSWORD_RELEASE']
              storeFile file(keystoreProperties['STORE_FILE_RELEASE'])
              storePassword keystoreProperties['STORE_PASSWORD_RELEASE']
          }
      }
  
      /*- exclude buildTypes = "debug" from build Variants
      variantFilter { variant -&gt;
          if (variant.buildType.name.equals('debug')) {
              variant.setIgnore(true);
          }
      }*/
  
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  
              // sign settings
              signingConfig signingConfigs.release
  
              // config Fabrice (Beta of Crashlytics)
              ext.betaDistributionReleaseNotes = defaultConfig.versionName + " " + name
              ext.betaDistributionEmailsFilePath = "app/beta_distribution_emails.txt"
          }
          debug {
              ext.alwaysUpdateBuildId = false // not need CrashLytics on debug mode
  
          }
      }
  
  } 
  </code></pre>
  
  <p>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])</p>
  
  <pre><code>implementation('com.crashlytics.sdk.android:crashlytics:2.7.0@aar') { transitive = true; }
  
  implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  implementation 'com.android.support:appcompat-v7:26.1.0'
  implementation 'com.android.support:design:26.1.0'
  implementation 'com.android.support:recyclerview-v7:26.1.0'
  // must use pdf-viewer:1.6.0
  implementation 'com.github.barteksc:android-pdf-viewer:1.6.0'
  //implementation 'com.github.markomilos:paginate:0.5.1'
  implementation 'com.google.android.gms:play-services-location:11.4.2'
  implementation 'com.google.android.gms:play-services-maps:11.4.2'
  implementation "com.github.bumptech.glide:glide:$GLIDE_VERSION"
  implementation "com.jakewharton:butterknife:$BUTTER_KNIFE_VERSION"
  implementation 'com.jayway.jsonpath:json-path:2.4.0'
  implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
  implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
  implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  implementation 'commons-io:commons-io:2.5'
  implementation 'io.realm:android-adapters:2.0.0'
  implementation 'org.greenrobot:eventbus:3.0.0'
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$KOTLIN_VERSION"
  
  implementation project(':common')
  
  kapt "com.github.bumptech.glide:compiler:$GLIDE_VERSION"
  kapt "com.jakewharton:butterknife-compiler:$BUTTER_KNIFE_VERSION"
  
  // test dependencies
  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'
  </code></pre>
  
  <p>}</p>
  
  <pre><code>repositories {
      mavenCentral()
      maven { url 'https://maven.fabric.io/public' }
  }
  </code></pre>
  
  <p>Name of my layout is : <code>offer_item.xml</code>.</p>
  
  <p>So as result Binding file name is : <code>OfferItemBinding</code></p>
  
  <p>Here my RecyclerViewAdapter:</p>
  
  <pre><code>import com.myproject.android.customer.databinding.OfferItemBinding;
  
      public OfferSortAdapter.OfferViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
              LayoutInflater inflater = LayoutInflater.from(parent.getContext());
              OfferItemBinding binding = OfferItemBinding.inflate(inflater, parent, false);
              return new OfferViewHolder(binding.getRoot(), this);
          }
  </code></pre>
  
  <p>here xml layout:</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"&gt;
  
      &lt;data&gt;
  
          &lt;variable
              name="offer"
              type="com.myproject.android.customer.api.model.Offer" /&gt;
      &lt;/data&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>File <code>OfferItemBinding</code> was NOT generated.</p>
  
  <p>And I get error:</p>
  
  <pre><code>    D:\dev\MyProject\app\src\main\java\com\myproject\android\customer\ui\adapter\OfferSortAdapter.java:29:
  
  error: package com.myproject.android.customer.databinding does not exist
      import com.myproject.android.customer.databinding.OfferItemBinding;
  </code></pre>