title: Cannot invoke method data Binding() on null object, while adding dataBinding in Gradle
body: <p>I searched in stackoverflow a lot i cant find a solution to this particular issue,</p>
  
  <p>i added</p>
  
  <pre><code> dataBinding {
          enabled = true
      }
  </code></pre>
  
  <p>inside the android{} and also android support repository is enabled</p>
  
  <p>but  getting this error</p>
  
  <p>Update: using Java</p>
  
  <blockquote>
    <p><a href="https://i.stack.imgur.com/qJvUV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qJvUV.png" alt="Cannot invoke method data Binding() on null object"></a></p>
  </blockquote>