A problem has suddenly recently arisen such that simply by including the dependency in \'location\' in pubspec.yaml like e.g.
dependencies:
flutter:
I had the same issue with physical android device as well as the emulator. I am not entirely sure how I resolved this but here are the steps:
cached_network_image
in my case) in pubspec.yaml
.flutter upgrade
and flutter packages get
again. Point to note is that my app didn't crash even after changing the package version back to the latest in the pubspec.yaml
after performing the above 3 steps.