Hello Guys How Are you all? hope you all are fine. today when I updated my flutter version, suddenly I got the following error: βerror: incompatible types: PluginRegistry cannot be converted to FlutterEngine GeneratedPluginRegistrant.registerWith (registry); β from firebase_messaging plugin.
I Got This Error From firebase_messaging plugin
error: incompatible types: PluginRegistry cannot be converted to FlutterEngine
GeneratedPluginRegistrant.registerWith(registry);
Line where I Got This Error
public void registerWith(PluginRegistry registry) {
GeneratedPluginRegistrant.registerWith(registry);
}
Solution
Replace this code line:
Here is all possible solutions added PluginRegistry cannot be converted to FlutterEngine In Flutter
Top comments (1)
This didn't work for me, but some research and I found this to be working:
on firabase_messaging: 9.0.0