Skip to content

Flutter running the app with outdated app code #169914

Open
@kiran-katakam

Description

@kiran-katakam

Steps to reproduce

Flutter aint running the updated code; i have to clean the code using flutter clean and uninstall the app and reinstall again Hot restart and hot reload aren't helping.

I have noticed this issue exists previously and it was reported

it is closed because of the developer sare not able to reproduce the issue

i think it is mostly because of the IDE im not sure though

i am attaching its link: issue

Expected results

Flutter is expected to run the application with latest version after restarting

Actual results

it is running the app's oldest version, outdated version, the app state when im launching the app initially

Code sample

Before
await controller.runJavaScript(
      """document.querySelector('#captchaStr').value = '$captcha':
      document.querySelector('#submitBtn').click();""",
    );
After
await controller.runJavaScript(
      """document.querySelector('#captchaStr').value = '$captcha';
      document.querySelector('#submitBtn').click();""",
    );

Here you can see In the Before code i placed a colon instead of semicolon after $captcha

But in both cases i got unexpected ':' error in log even after restarting the app

the app only got updated after i clean the code and uninstalled old version and reinstalled the app

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.32.0, on Ubuntu 25.04 6.14.0-15-generic, locale en_US.UTF-8) [201ms]
    • Flutter version 3.32.0 on channel stable at /home/kiran/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision be698c48a6 (2 weeks ago), 2025-05-19 12:59:14 -0700
    • Engine revision 1881800949
    • Dart version 3.8.0
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,946ms]
    • Android SDK at /home/kiran/Android/Sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /snap/android-studio/191/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
    • All Android licenses accepted.

[✓] Chrome - develop for the web [113ms]
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop [636ms]
    • Ubuntu clang version 20.1.2 (0ubuntu1)
    • cmake version 3.31.6
    • ninja version 1.12.1
    • pkg-config version 1.8.1
    • OpenGL core renderer: Mesa Intel(R) Iris(R) Xe Graphics (ADL GT2)
    • OpenGL core version: 4.6 (Core Profile) Mesa 25.0.3-1ubuntu2
    • OpenGL core shading language version: 4.60
    • OpenGL ES renderer: Mesa Intel(R) Iris(R) Xe Graphics (ADL GT2)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 25.0.3-1ubuntu2
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
    • GL_EXT_framebuffer_blit: yes
    • GL_EXT_texture_format_BGRA8888: yes

[✓] Android Studio (version 2024.3) [109ms]
    • Android Studio at /snap/android-studio/191
    • Flutter plugin version 85.3.1
    • Dart plugin version 243.26753.1
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)

[✓] VS Code (version unknown) [11ms]
    • VS Code at /snap/code/current/usr/share/code
    • Flutter extension version 3.112.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (3 available) [176ms]
    • 22101316G (mobile) • krgu9heaxseia679 • android-arm64  • Android 14 (API 34)
    • Linux (desktop)    • linux            • linux-x64      • Ubuntu 25.04 6.14.0-15-generic
    • Chrome (web)       • chrome           • web-javascript • Google Chrome 136.0.7103.113

[✓] Network resources [1,283ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions