I am using vscode to developing flutter application , I don't know what is going on ! When I save project and try to hot reload just one time it's work and notification of hot reloading(Performing hot reload
) remain at bottom of vscode and next hot reloading not works.
Vscode not throw any error or something to catch a problem so I run application with run
command and after hot reload, this is it's result :
Flutter run key commands.
r Hot reload. π₯π₯π₯
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on sdk gphone x86 arm is available at: http://127.0.0.1:40989/zVisdoiRRE8=/
Flutter DevTools, a Flutter debugger and profiler, on sdk gphone x86 arm is available at: http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A40989%2FzVisdoiRRE8%3D%2F
Running with unsound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Performing hot reload...
Now when I press r , hot reload not working .
I am using fvm and This is my sdk version :
$ flutter doctor -v
[β] Flutter (Channel unknown, 2.0.6, on Linux, locale en_US.UTF-8)
β’ Flutter version 2.0.6 at /home/alt/fvm/versions/2.0.6
β’ Framework revision 1d9032c7e1 (5 weeks ago), 2021-04-29 17:37:58 -0700
β’ Engine revision 05e680e202
β’ Dart version 2.12.3
[β] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
β’ Android SDK at /mnt/SSDP/Sdk/android/
β’ Platform android-S, build-tools 30.0.3
β’ ANDROID_HOME = /mnt/SSDP/Sdk/android
β’ ANDROID_SDK_ROOT = /mnt/SSDP/Sdk/android/
β’ Java binary at: /mnt/SSDP/android-studio/jre/bin/java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
β’ All Android licenses accepted.
[β] Chrome - develop for the web
β’ Chrome at google-chrome
[β] Android Studio
β’ Android Studio at /mnt/SSDP/android-studio/
β’ 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
β’ android-studio-dir = /mnt/SSDP/android-studio/
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[β] VS Code (version 1.56.2)
β’ VS Code at /usr/share/code
β’ Flutter extension version 3.23.0
[β] Connected device (2 available)
β’ Android SDK built for x86 (mobile) β’ emulator-5554 β’ android-x86 β’ Android 10 (API 29)
(emulator)
β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome
91.0.4472.77
β’ No issues found!
- I faced this problem with Android studio too.