Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Flutter tool is looking for the wrong aab file due to casing on ubuntu runner on Github when using mixed/upper case flavor names #166057

Closed
Labels
r: duplicateIssue is closed as a duplicate of an existing issue
@SEGVeenstra

Description

@SEGVeenstra

Steps to reproduce

  1. Create a flutter (Android) project
  2. Add flavors with mixed/upper casing (Dev, Prd, for example)
  3. Add github workflow running on ubuntu
  4. Add actionflutter build aab --flavor <flavor name> --release
  5. Trigger the workflow on github

Expected results

The following output:

Running Gradle task'assembleDevRelease'...              666.7s✓ Built build/app/outputs/flutter-apk/app-Dev-release.apk (31.9MB)

Actual results

Output like this:

Running Gradle task'bundleDevRelease'...               1188.4sGradle build failed to produce an .aab file. It's likely that this file was generated under /home/runner/work/path/to/build, but the tool couldn't find it.

On further examination I found that the aab is actually being build so the gradle steps went well. But after that the Flutter-tool was not able to find it.

I also found an issue on the internet where someone had the same error, but for a different reason. But this person mentioned the tool is looking at specific locations:

and Flutter build command: flutter build appbundle --release --flavor exampleProd --verbose flutter_tools is lookingfor the AAB file in:build/app/outputs/bundle/release/app.aabbuild/app/outputs/bundle/release/app-release.aabbuild/app/outputs/bundle/exampleprodRelease/app.aabbuild/app/outputs/bundle/exampleprodRelease/app-exampleprod-release.aab

So I noticed that these paths are all lower case, but the aab outputted by gradle isn't.
Then I found out ubuntu is case sensitive and that might be the reason why it was unable to find it.

I switched to an macos runner and then it works.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp