title: How to fix "'dexOptions(Action<DexOptions>): Unit' is deprecated. Setting dexOptions is obsolete."?
body: <p>Recently, I've updated my gradle version from 4.0.0 to 7.0.3. After this update, getting dexOptions is obsolete warning. Still, I'm able to compile the project but don't know how to fix this warning.
  This what my current implementation,</p>
  <pre><code>dexOptions {
      preDexLibraries = true
  }
  </code></pre>
  <p>Here is the warning I'm getting. Help me to solve this.
  <a href="https://i.stack.imgur.com/P3HEo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P3HEo.png" alt="enter image description here" /></a></p>