Skip to content

Hot reload received invalid response #55552

@xvrh

Description

@xvrh

From time to time I have this error message when doing a "hot reload" Hot reload received invalid response: {type: Sentinel, kind: Collected, valueAsString: <collected>}.

Screenshot 2020-04-24 at 14 12 35

When this happens, this is hard to get back to a correct workflow.
If I "hot restart", the file that I'm currently editing stays "stale": it keeps the old code even when I edit it. It looks like Flutter has a cache issue and does not detect that the file was edited.
I have to stop the app and do a full build again.

Environment:

  • Device: iPhone 11 and iOS 13.3
  • Host: macOS 10.15.4
  • Flutter: beta 1.17.0-3.2.pre (I had the same problem with the previous beta)
  • IntelliJ IDEA with flutter plugin 45.1.2
[✓] Flutter (Channel beta, v1.17.0-3.2.pre, on Mac OS X 10.15.4 19E287, locale en-BE)
    • Flutter version 1.17.0-3.2.pre at /Users/xavier/projects/flutter_stable
    • Framework revision 2a7bc389f2 (2 days ago), 2020-04-21 20:34:20 -0700
    • Engine revision 4c8c31f591
    • Dart version 2.8.0 (build 2.8.0-dev.20.10)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/xavier/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit visit
      https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 43.0.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 45.1.2
    • Dart plugin version 193.6494.35

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.7.1

[✓] Connected device (4 available)
    • Moto G 5 Plus   • ZY224FKBCL                • android-arm    • Android 8.1.0 (API 27)
    • Xavier’s iPhone • 00008030-00012D9C0212802E • ios            • iOS 13.3.1
    • Chrome          • chrome                    • web-javascript • Google Chrome 81.0.4044.122
    • Web Server      • web-server                • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consoletoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions