You need to change the android\app\src\main\AndroidManifest.xml file.
From :
<application
android:name="io.flutter.app.FlutterApplication"
...
To :
<application
android:name="${applicationName}"
...
add this three lines if doesn’t exist :
<meta-data
android:name="flutterEmbedding"
android:value="2" />
...
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java.