[英]Insufficient permissions to the resource in https://pub.dartlang.org package repository
I got this error when I delete flutter-sdk and replace new flutter-sdk删除flutter-sdk并替换新的flutter-sdk时出现此错误
Insufficient permissions to the resource in https://pub.dartlang.org package repository. You can modify credential using:
pub token add https://pub.dartlang.org
Running "flutter pub get" in flutter_tools...
pub get failed (65; pub token add https://pub.dartlang.org)
flutter version : flutter 版本:
Flutter 2.8.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision cf44000065 (6 days ago) • 2021-12-08 14:06:50 -0800
Engine • revision 40a99c5951
Tools • Dart 2.15.0
First delete credentials:首先删除凭据:
rm ~/.pub-cache/credentials.json
After you try:尝试后:
flutter upgrade
flutter pub cache repair
I had the same issue.我遇到过同样的问题。 You need to use a VPN.
您需要使用 VPN。
I just restart my system and then try to do "flutter pub get" and it works:|我只是重新启动我的系统,然后尝试执行“flutter pub get”并且它可以工作:|
Just flip the country in your VPN to another European country like Netherland to bypass Google LOL, do not set it to Turkiye which is not working as well.只需将您的 VPN 中的国家/地区翻转到另一个欧洲国家(例如荷兰)即可绕过 Google LOL,不要将其设置为无法正常工作的 Turkiye。 (Turkey recently changed its name to Turkiye, dictionaries need to be updated).
(土耳其最近更名为Turkiye,字典需要更新)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.