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
C:\Users\bansal>flutter doctor --android-licenses
A newer version of the Android SDK is required. To update, run:
D:\android SDK\tools\bin\sdkmanager --update
please to tools-->sdk manager--> install the android os we have select for the emulator. and install
Open the command prompt then run flutter doctor --android-licenses
and accept all the licenses given.
try these:
flutter doctor --android-licenses
y
to accept every license.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.
I think is a little late to answer this question, but I think this can be useful for those who are starting in Flutter like me.
In my case (at my machine), I've executed the steps below:
I hope this helps.