flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Hot reload and hot restart button are not working.

Open Giresharu opened this issue 1 year ago • 2 comments

Steps to Reproduce

I created a new project using "flutter create" and after running "flutter run" in the terminal, I can perform hot reload by making code changes directly in the terminal.

However, when running the project through IntelliJ IDEA with the Flutter plugin, I am unable to use the hot reload button, whether in Chrome, Windows, or on my phone.

After clicking the button, there is no new output information in the console, and the hot reload and hot restart buttons become grayed out. After waiting for ten minutes, nothing happens. Even if I make further code changes, the hot reload and hot restart buttons do not become active again, preventing me from clicking on them.

Version info

flutter doctor -v infomation:

[✓] Flutter (Channel stable, 3.16.5, on Microsoft Windows [版本 10.0.19045.3803], locale zh-CN)
    • Flutter version 3.16.5 on channel stable at D:\Program Files\Flutter\flutter_windows_3.16.5-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (2 weeks ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4
    • Pub download mirror https://mirrors.tuna.tsinghua.edu.cn/dart-pub
    • Flutter download mirror https://mirrors.tuna.tsinghua.edu.cn/flutter

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at D:\Program Files\android-sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = D:\Program Files\android-sdk
    • Java binary at: D:\Program Files\Java\jdk-17.0.9\bin\java.exe
    • Java version Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3)
    • Visual Studio at D:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.8.34330.188
    • Windows 10 SDK version 10.0.22621.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at D:\Program Files\JetBrains\IntelliJ IDEA 2023.2.5
    • Flutter plugin version 77.1.3
    • Dart plugin version 232.10248

[✓] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is localhost,127.0.0.1,::1
    • NO_PROXY contains localhost
    • NO_PROXY contains ::1
    • NO_PROXY contains 127.0.0.1

[✓] Connected device (4 available)
    • RMX3700 (mobile)  • c249d319 • android-arm64  • Android 13 (API 33)
    • Windows (desktop) • windows  • windows-x64    • Microsoft Windows [版本 10.0.19045.3803]
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 120.0.6099.200
    • Edge (web)        • edge     • web-javascript • Microsoft Edge 120.0.2210.91

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

! Doctor found issues in 1 category.

Giresharu avatar Jan 05 '24 18:01 Giresharu

I tried the latest version of Android Studio today, and encountered the same issue.

Giresharu avatar Jan 08 '24 12:01 Giresharu

I tried vs code with same version, and encountered the same issue.

jgaybjone avatar Feb 25 '24 13:02 jgaybjone