ysak-y / flutter_audio_capture

Package to capture audio stream buffer for flutter
MIT License
21 stars 28 forks source link

Fix build error on Android #22

Closed liamappelbe closed 1 year ago

liamappelbe commented 1 year ago

I tried using this package in an Android app on Flutter 3.13.0 and got this error:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_audio_capture' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Removing this version constraint line fixes the error for me. TBH I'm not an expert in gradle, so I'm not sure if that line is needed for some other reason, but my app builds fine now.

ysak-y commented 1 year ago

@liamappelbe Hi, thank you for your contribution! As you say, this is the kotlin language version issue. I updated kotlin version to higher and usual version as following. Now you can apply this patch by updating this library version to 1.1.6. Could you please try it?

https://github.com/ysak-y/flutter_audio_capture/commit/8f4cd5d26c92a79a089751bbdfd8dc030e3a6dff

liamappelbe commented 1 year ago

Yep, version 1.1.6 works. Thanks