Something that work for me is: Delete your `pubspec.lock`, and press `Pub Get` in your `pubspec.yaml`, it'll regenerate `pubspec.lock` file again and should fix the problem.
Something that work for me is: Delete your `pubspec.lock`, and press 'Pub Get' in your `pubspec.yaml`, it'll regenerate pubspec.lock file again and should fix the problem.