Skip to content

[tool] flutter run runs only app.apk #111585

@AlexV525

Description

@AlexV525

Steps to Reproduce

  1. Configure flavors for the Android app, such as "inside".
  2. flutter run --flavor=inside
  3. The Installing xxx.apk has a different path from Built xxx.apk.

android/app/build.gradle:

//......
android {
    //......
    flavorDimensions "app"
    productFlavors {
        inside {}
        play {}
    }
}
//......

image

(LocalFile is my additional print.)

[!] Flutter (Channel master, 3.4.0-19.0.pre.254, on Microsoft Windows [版本 10.0.22000.856], locale zh-CN)
    • Flutter version 3.4.0-19.0.pre.254 on channel master at X:\SDK\flutter-master
    ! Upstream repository https://github.com/AlexV525/flutter is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to https://github.com/AlexV525/flutter to dismiss this error.
    • Framework revision 6b1f84fe10 (66 minutes ago), 2022-09-14 09:46:00 -0700
    • Engine revision 179d528f6a
    • Dart version 2.19.0 (build 2.19.0-197.0.dev)
    • DevTools version 2.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: buildBuilding flutter applications with the toolc: new featureNothing broken; request for a new capabilityfound in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallytoolAffects 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