title: Deprecated Gradle features were used in this build, making it incompatible with Gradle X
body: <p>I want install <a href="https://realm.io/docs/javascript/latest/#getting-started" rel="nofollow noreferrer">realm</a> localDb with <strong>react-native</strong> but after install this package in <code>npm</code> project not run with this command <code>react-native run-android</code>,</p>
  <blockquote>
  <p><code>Task :app:mergeDexDebug FAILED</code> I don't know what is mean this error !!!</p>
  </blockquote>
  <blockquote>
  <p>Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0</p>
  </blockquote>
  <h2>Project Setting</h2>
  <pre><code>defaultConfig {
      applicationId &quot;com.olyaaqarat&quot;
      minSdkVersion rootProject.ext.minSdkVersion
      targetSdkVersion rootProject.ext.targetSdkVersion
      versionCode 1
      versionName &quot;1.0&quot;
  }
  </code></pre>
  <hr />
  <pre><code> buildscript {
      ext {
          buildToolsVersion = &quot;29.0.2&quot;
          minSdkVersion = 16
          compileSdkVersion = 29
          targetSdkVersion = 29
      }
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath(&quot;com.android.tools.build:gradle:3.5.3&quot;)
      }
  }
  </code></pre>
  <hr />
  <pre><code>$ react-native -v
  react-native-cli: 2.0.1
  react-native: 0.63.2
  </code></pre>
  <p><strong>Android Gradle version</strong>
  <code>Gradle 6.7</code></p>
  <p><strong>Test Device</strong></p>
  <blockquote>
  <p>Real devoice android 9</p>
  </blockquote>
  <p>I look this answer but not  help me !!!
  <a href="https://stackoverflow.com/questions/51610420/deprecated-gradle-features-were-used-in-this-build-making-it-incompatible-with">Deprecated Gradle features were....</a></p>