title: How do I solve a configuration problem with audioplayers when using the command flutter build apk?
body: <p>I have just created an app with flutter and I want to get the apks by splitting per abi. When given the command, there is a problem with configuring the plugin audioplayers. </p>
  
  <p>I thought it could be a problem with using androidX?</p>
  
  <p>Here is the error I get:</p>
  
  <p>´´´
  FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Execution failed for task ':audioplayers:verifyReleaseResources'.</p>
  
  <blockquote>
    <p>A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    Android resource linking failed
     C:\Users\vanda_qwkpv9x.gradle\caches\transforms-2\files-2.1\7faf2ad74a0b9932e38d86e684646e95\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.</p>
  </blockquote>
  
  <p>C:\Users\vanda_qwkpv9x.gradle\caches\transforms-2\files-2.1\7faf2ad74a0b9932e38d86e684646e95\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.</p></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
  </ul>
  
  <p>BUILD FAILED in 56s
  Running Gradle task 'assembleRelease'...
  Running Gradle task 'assembleRelease'... Done                      57.7s
  The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve
  the incompatibility.
  Building plugin audioplayers...
  Running Gradle task 'assembleAarRelease'...
  Running Gradle task 'assembleAarRelease'... Done                    2.0s</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  A problem occurred configuring root project 'audioplayers'.</p>
  
  <blockquote>
    <p>SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.</p>
  </blockquote></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
  </ul>
  
  <p>BUILD FAILED in 1s</p>
  
  <p>The plugin audioplayers could not be built due to the issue above.</p>
  
  <pre><code>
  Anyone suggestions?
  </code></pre>