Skip to content

Flutter modules don't support custom build types #34089

@josh-burton

Description

@josh-burton

Steps to Reproduce

  1. Create a new Flutter module project: flutter create --androidx -t module -a kotlin -i swift project_name
  2. Add an additional build type to the build types of the host app, e.g. staging
  3. Try to do a gradle sync or a build

You will receive the following error:

ERROR: Unable to resolve dependency for ':app@staging/compileClasspath': Could not resolve project :flutter.
Show Details
Affected Modules: app

The root cause here is that the flutter jar is only being added as a dependency on a fixed set of build types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions