title: Execution failed for task ':audioplayers:compileDebugKotlin'
body: <p>I'm facing this nasty error when trying to compile my Flutter App into an Android simulator. Here is the error log (is too long to paste it entirely):</p>
  <blockquote>
  <p>aunching lib/main.dart on sdk gphone x86 in debug mode...
  Running Gradle task 'assembleDebug'...
  Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
  e: Incompatible classes were found in dependencies. Remove them from
  the classpath or use '-Xskip-metadata-version-check' to suppress
  errors e:
  /Users/reinier/.gradle/caches/transforms-2/files-2.1/24fa3aa8d2270e5eb067bbe36e9b7563/jetified-kotlin-stdlib-1.5.10.jar!/META-INF/kotlin-stdlib.kotlin_module:
  Module was compiled with an incompatible version of Kotlin. The binary
  version of its metadata is 1.5.1, expected version is 1.1.15. e:
  /Users/reinier/.gradle/caches/transforms-2/files-2.1/4d4ccf1034ba5937e6e7ba3aa34d2661/jetified-core-ktx-1.6.0-beta02-api.jar!/META-INF/core-ktx_release.kotlin_module:
  Module was compiled with an incompatible version of Kotlin. The binary
  version of its metadata is 1.5.1, expected version is 1.1.15. e:
  /Users/reinier/.gradle/caches/transforms-2/files-2.1/77bab1911042ab2c6d5cc0b2e2ee053c/jetified-kotlin-stdlib-common-1.5.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module:
  Module was compiled with an incompatible version of Kotlin. The binary
  version of its metadata is 1.5.1, expected version is 1.1.15. e:
  /Users/reinier/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.18.3/android/src/main/kotlin/xyz/luan/audioplayers/AudioplayersPlugin.kt:
  (18, 32): Unresolved reference: mutableMapOf e:
  /Users/reinier/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.18.3/android/src/main/kotlin/xyz/luan/audioplayers/AudioplayersPlugin.kt:
  (25, 9): Class 'kotlin.Unit' was compiled with an incompatible version
  of Kotlin. The binary version of its metadata is 1.5.1, expected
  version is 1.1.15.</p>
  <p>. . . . .</p>
  <p>e:
  /Users/reinier/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.18.3/android/src/main/kotlin/xyz/luan/audioplayers/WrappedSoundPool.kt: (235, 30): Class 'kotlin.Unit' was compiled with an incompatible
  version of Kotlin. The binary version of its metadata is 1.5.1,
  expected version is 1.1.15. The class is loaded from
  /Users/reinier/.gradle/caches/transforms-2/files-2.1/24fa3aa8d2270e5eb067bbe36e9b7563/jetified-kotlin-stdlib-1.5.10.jar!/kotlin/Unit.class</p>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li>What went wrong: Execution failed for task ':audioplayers:compileDebugKotlin'.</li>
  </ul>
  <blockquote>
  <p>Compilation error. See log for more details</p>
  </blockquote>
  <ul>
  <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="noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>BUILD FAILED in 21s Exception: Gradle task assembleDebug failed with
  exit code 1</p>
  </blockquote>
  <ol>
  <li>I already tried changing &quot;minSdkVersion 16&quot; to &quot;minSdkVersion 23&quot; at android/app/build.gradle:38 and is not working.</li>
  <li>Tried using the version 0.17.0 of audioplayers and the same, not working.</li>
  <li>Tried using the version ^0.10.0 of audioplayers and nothing.</li>
  <li>Tried doing the previos steps and then executing on the terminal: flutter clean &amp; flutter pub get... and nothing.</li>
  <li>I already updated the Flutter SDK and nothing. Still not working for Android.</li>
  </ol>
  <p>It compiles perfectly on an IOS simulator. This error has emerged several times after each audioplayers package update. I'm using compileSdkVersion 30 on Android Studio 4.2.1</p>
  <p>This is my pubspec.yaml file:</p>
  <pre><code>name: feeddy_flutter
  description: A multi screen foods listing Flutter app
  
  publish_to: 'none' # Remove this line if you wish to publish to pub.dev
  
  version: 1.0.0+1
  
  environment:
    sdk: &quot;&gt;=2.7.0 &lt;3.0.0&quot;
  
  dependencies:
    flutter:
      sdk: flutter
  
    cupertino_icons: ^1.0.2
    intl: ^0.17.0
    uuid: ^3.0.4
    currency_text_input_formatter: ^2.0.1
    date_time_picker: ^2.0.0
    rflutter_alert: ^2.0.2
    faker: ^1.3.0
    fl_chart: ^0.35.0
    provider: ^5.0.0
    tinycolor: ^1.0.3
    font_awesome_flutter: ^9.0.0
    audioplayers: ^0.18.3
    empty_widget: ^0.0.2
    splashscreen: ^1.3.5
    native_device_orientation: ^1.0.0
    sqflite: ^2.0.0+3
    flutter_switch: ^0.3.1
    flutter_colorpicker: ^0.4.0
    enum_to_string: ^2.0.1
    humanizer: ^0.0.2
    route_observer_mixin: ^1.5.0+1
  
  dev_dependencies:
    flutter_test:
      sdk: flutter
  
  flutter:
    uses-material-design: true
  
    assets:
      - assets/images/
      - assets/audio/
  
    fonts:
      - family: Luminari
        fonts:
          - asset: assets/fonts/Luminari/Luminari-Regular.ttf
            style: normal
            weight: 500
          - asset: assets/fonts/Luminari/Luminari-Regular.woff
            style: normal
            weight: 500
      - family: SourceSansPro
        fonts:
          - asset: assets/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf
            style: normal
            weight: 500
      - family: OpenSans
        fonts:
          - asset: assets/fonts/OpenSans/OpenSans-Regular.ttf
            style: normal
            weight: 500
          - asset: assets/fonts/OpenSans/OpenSans-Bold.ttf
            weight: 700
      - family: Quicksand
        fonts:
          - asset: assets/fonts/Quicksand/Quicksand-Regular.ttf
            style: normal
            weight: 500
          - asset: assets/fonts/Quicksand/Quicksand-Medium.ttf
          - asset: assets/fonts/Quicksand/Quicksand-Light.ttf
          - asset: assets/fonts/Quicksand/Quicksand-Bold.ttf
            weight: 700
      - family: Raleway
        fonts:
          - asset: assets/fonts/Raleway/Raleway-Regular.ttf
            style: normal
            weight: 500
          - asset: assets/fonts/Raleway/Raleway-Bold.ttf
            weight: 700
          - asset: assets/fonts/Raleway/Raleway-Black.ttf
            weight: 900
      - family: RobotoCondensed
        fonts:
          - asset: assets/fonts/RobotoCondensed/RobotoCondensed-Regular.ttf
            style: normal
            weight: 500
          - asset: assets/fonts/RobotoCondensed/RobotoCondensed-Bold.ttf
            weight: 700
          - asset: assets/fonts/RobotoCondensed/RobotoCondensed-Light.ttf
            weight: 300
          - asset: assets/fonts/RobotoCondensed/RobotoCondensed-Italic.ttf
            style: italic
      - family: AppIcons
        fonts:
          - asset: assets/fonts/AppIcons/AppIcons.ttf
  </code></pre>