anarchuser / mic_stream

Flutter plugin to get an infinite audio stream from the microphone
https://pub.dev/packages/mic_stream
GNU General Public License v3.0
100 stars 68 forks source link

Class 'SoundStreamPlugin' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult #56

Closed tGrothmannFluffy closed 1 year ago

tGrothmannFluffy commented 1 year ago

Hi there,

I added the package to by project dependencies in pubspec.yaml: sound_stream: ^0.3.0

First, I had to update the minimum android SDK Version to 21 (which is absolutely fine). but now I'm getting this error:

e: /Users/fluffy/.pub-cache/hosted/pub.dev/sound_stream-0.3.0/android/src/main/kotlin/vn/casperpas/sound_stream/SoundStreamPlugin.kt: (45, 8): Class 'SoundStreamPlugin' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: /Users/fluffy/.pub-cache/hosted/pub.dev/sound_stream-0.3.0/android/src/main/kotlin/vn/casperpas/sound_stream/SoundStreamPlugin.kt: (182, 5): 'onRequestPermissionsResult' overrides nothing

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sound_stream:compileDebugKotlin'.
anarchuser commented 1 year ago

I think you've got the wrong plugin. This is the mic_stream plugin, not sound_stream

tGrothmannFluffy commented 1 year ago

Oh boy, sorry for that. 😬