Skip to content

Flutter 3.35 no longer bundles assets from overridden packages #174593

@josh-burton

Description

@josh-burton

Steps to reproduce

  1. depend on a flutter package with assets via dependency_overrides only.
  2. Attempt to use an asset from that package
  3. Asset is unable to be found

This worked on previous Flutter versions, but has broken in 3.35. I believe this is related to fixes made for #160142

Expected results

The asset should be able to be found

Actual results

The asset cannot be found.

Code sample

Code sample

https://github.com/josh-burton/flutter_asset_bundling_bug

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[!] Flutter (Channel [user-branch], 3.35.2, on macOS 15.6.1 24G90 darwin-arm64, locale en-NZ) [366ms]
    ! Flutter version 3.35.2 on channel [user-branch] at /Users/joshburton/fvm/versions/3.35.2
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 05db968908 (2 days ago), 2025-08-25 10:21:35 -0700
    • Engine revision a8bfdfc394
    • Dart version 3.9.0
    • DevTools version 2.48.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-lldb-debugging
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,129ms]
    • Android SDK at /Users/joshburton/dev/android-sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /Users/joshburton/dev/android-sdk
    • Java binary at: /Users/joshburton/.jenv/versions/openjdk64-17.0.16/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Homebrew (build 17.0.16+0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [943ms]
    • Xcode at /Applications/Xcode-16.4.0.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [93ms]
    • CHROME_EXECUTABLE = /Users/joshburton/google-chrome-mine.sh

[✓] Android Studio (version 2025.1) [93ms]
    • Android Studio at /Users/joshburton/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)

[✓] IntelliJ IDEA Ultimate Edition (version 2025.2) [92ms]
    • IntelliJ at /Users/joshburton/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 87.1
    • Dart plugin version 252.24322.5

[✓] VS Code (version 1.102.3) [5ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.114.0

[✓] Connected device (2 available) [5.8s]
    • macOS (desktop) • macos  • darwin-arm64   • macOS 15.6.1 24G90 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 139.0.7258.139
    ! Error: Browsing on the local area network for Josh’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [536ms]
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: buildBuilding flutter applications with the toola: imagesLoading, displaying, rendering imagesc: regressionIt was better in the past than it is nowfound in release: 3.35Found to occur in 3.35found in release: 3.36Found to occur in 3.36has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: solvedIssue is closed as solvedteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamworkaround availableThere is a workaround available to overcome the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions