Since yesterday, every time I run flutter pub get, it gives this error:
Because project depends on flutter_lints any which doesn't exist (authorization failed), version solving failed.
Insufficient permissions to the resource at the https://pub.dev package repository.
You can modify credentials using:
dart pub token add https://pub.dev
It was not solved with vpn and dns.
Flutter in China > set mirrors > 403 dns> flutter clean > flutter pub get
It worked.