Skip to content

flutter run reflects old code even after upgrade to Flutter 3.32.5 from Flutter 3.29.0 #171507

@am-i-abdullah

Description

@am-i-abdullah

Steps to reproduce

🐛 Bug Report

Summary

After upgrading Flutter from 3.29.0 to 3.32.5, running flutter run no longer reflects the latest code changes in my app. This happens consistently, even after cleaning the project and trying multiple times.


Steps to Reproduce

  1. Was previously on Flutter 3.29.0
  2. Upgraded using:
    flutter channel stable
    flutter upgrade
  3. Verified version with:
    flutter --version
  4. Made code changes in a Flutter project
  5. Ran:
    flutter run
  6. Observed that old code was still being executed

Tried the following workarounds

  • Ran flutter run multiple times → Still runs old code
  • Ran flutter clean then flutter pub getStill no effect
  • Restarted IDE & emulator/device → Same behavior
  • Ensured hot reload was not the issue → Even full rebuild doesn’t reflect new code

Expected results

Expected Results

flutter run should rebuild the latest code and reflect the current state of the project.

Actual results

Actual Behavior

App runs with stale code from a previous build, despite project modifications.


Environment

  • OS: Windows 11
  • Flutter version: 3.32.5 (stable)
  • Editor: VS Code
  • Target: Android (real device)
  • Flutter installed at: C:\flutter

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: timeoutIssue is closed due to author not providing the requested details in time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions