-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: wikiFlutter or engine wikisFlutter or engine wikisengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
The documentation seems inconsistency about the content of the MainActivity class of a app created with android embedding v2 enabled (default).
- https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects say to replace the
onCreatemethod with aconfigureFlutterEnginemethod - https://flutter.dev/docs/development/packages-and-plugins/plugin-api-migration say to keep the class empty because plugins are registered automatically
The default template when creating app with v2 enabled (the default) is to have the configureFlutterEngine method present. That seems to generate this kind of issues : firebase/flutterfire#1669 because plugin are registered twice. Keep class empty seems to fix that
Is configureFlutterEngine useful ?
braj065
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: wikiFlutter or engine wikisFlutter or engine wikisengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team