Hello,
I’m encountering a compilation error when trying to use the mic_stream library with Flutter 3.29.0. The issue stems from the use of PluginRegistry.Registrar in MicStreamPlugin.java. In recent Flutter versions (with V2 embedding), the Registrar API has been deprecated and removed in favor of the FlutterPlugin API. As a result, the library is currently incompatible with the latest Flutter releases.
Here’s the error message I’m getting:
.pub-cache/hosted/pub.dev/mic_stream-0.7.1+2/android/src/main/java/com/code/aaron/micstream/MicStreamPlugin.java:24: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
To work around this, I’m planning to fork the library and update MicStreamPlugin.java to use FlutterPlugin, but it would be incredibly helpful if the library could be officially updated. I noticed it hasn’t been maintained for 16 months—any plans to release an update soon? It’d be great for the community if this issue could be addressed.
Thanks!