Skip to content

Android studio flutter plugin should use --config-only when opening example app in plugin #6898

Open
@reidbaker

Description

@reidbaker

Is there an existing issue for this?

Use case

flutter/flutter#19830 Is an issue with 85 upvotes where users are confused about how they can get their code to link correctly in android studio. We also have a documentation update task but this request is to avoid a common error.

Plugins are not buildable on their own so users already need to take the unintuitive step to open the example app we suggest in each plugin. The problem with that is we generate files on demand during a flutter run or flutter build that are required for android studio to know how to link the source.

--config-only is a build step we added to generate the gradle files required.

Proposal

Modify the flutter android studio plugin to mitigate this class of errors for users by either building or running config-only for them.

This is important despite the migration to vs code as our suggested editor because we still tell plugin developers working on android or add to app developers to use android studio.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions