I\'m developing android and ios app with Google flutter. when I add a new dependency like shared_preferences to pubspec.yaml and then execute
shared_preferences
pubspec.yaml
If you are in windows open command prompt as admin and run the following command.
flutter doctor --android-licenses
Then enter y for all (y/n) to accept agreement.
y