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
First make sure Android SDK is installed on your device. Also see if 2 Android SDK's are not Installed!
Then just simply type on Terminal or CMD flutter doctor --android-licenses Then press y until it acquires all permissions.
flutter doctor --android-licenses
y