I have been working on an app using flutter, everything was working fine until out of a sudden the android phone stopped detecting code changes when using hot reload and hot restart.

in order to make it detect these changes i have to stop the run phase and then run it again, like uninstall and install the app again, i tried invalidating the cache and restarting the android studio and tried flutter clean and i also tried wiping the virtual device's data, but nothing worked.

any help would be appreciated.