title: When I add viewBinding in gradle in Android Studio, it comes an error
body: <p>I am using Android Studio version 4.0.1.</p>
  <p>When I add viewBinding, it comes an error .</p>
  <p>Error when I add viewBinding in gradle.</p>
  <pre><code>buildFeatures {
      viewBinding = true
  }
  </code></pre>
  <p>build.gradle file</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      buildToolsVersion &quot;28.0.3&quot;
  
      defaultConfig {
          minSdkVersion 16
          targetSdkVersion 28
          versionCode 5
          versionName &quot;1.2.0&quot;
          resValue(&quot;string&quot;, &quot;growingio_project_id&quot;, &quot;8979dc98cc52320f&quot;)
          resValue(&quot;string&quot;, &quot;growingio_url_scheme&quot;, &quot;growing.1f3e3791e1d6aee5&quot;)
      }
      compileOptions {
          sourceCompatibility rootProject.ext.sourceCompatibilityVersion
          targetCompatibility rootProject.ext.targetCompatibilityVersion
      }
  
      buildFeatures {
          viewBinding = true
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: &quot;*.jar&quot;)
      implementation deps.swipeRevealLayout
      implementation deps.glide
      implementation deps.growingio
      implementation(deps.rxbus) {
          exclude group: 'com.jakewharton.timber', module: 'timber'
      }
      implementation deps.androidasync
      implementation deps.timber
  }
  </code></pre>
  <p>Error :</p>
  <blockquote>
  <p>Could not find method buildFeatures() for arguments [build_6zjavhoqnf2k7dfs2qrq542f3$_run_closure1$_closure5@6cd00094] on
  object of type
  com.android.build.gradle.internal.dsl.BaseAppModuleExtension.</p>
  </blockquote>
  <p>Why this error comes?</p>
  <p>How can I solve this error?</p>