Android 当我试图获取包颤振时,它向我显示HTTP错误403:禁止
我在Intellij Idea从事颤振项目。当我想在pubspec.yaml中添加包时,会导致以下错误:Android 当我试图获取包颤振时,它向我显示HTTP错误403:禁止,android,http,flutter,flutter-dependencies,dart-pub,Android,Http,Flutter,Flutter Dependencies,Dart Pub,我在Intellij Idea从事颤振项目。当我想在pubspec.yaml中添加包时,会导致以下错误: HTTP error 403: Forbidden package:pub/src/http.dart 218:5 _ThrowingClient.send ===== asynchronous gap =========================== package:http_throttle/http_throttle.dart 33:31 T
HTTP error 403: Forbidden
package:pub/src/http.dart 218:5 _ThrowingClient.send
===== asynchronous gap ===========================
package:http_throttle/http_throttle.dart 33:31 ThrottleClient.send
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 322:37 BoundHostedSource._download
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 217:13 BoundHostedSource.downloadToSystemCache
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 374:48 Entrypoint._get.<fn>
===== asynchronous gap ===========================
dart:async runZoned
package:pub/src/http.dart 272:10 withDependencyType
package:pub/src/entrypoint.dart 370:12 Entrypoint._get
dart:async Future.wait
package:pub/src/entrypoint.dart 231:18 Entrypoint.acquireDependencies
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver.solve
dart:async _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart VersionSolver._result
This is an unexpected error. Please run
pub --trace '--verbosity=warning' get --no-precompile
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
我的颤振sdk版本:
颤振\u窗口\u v1.9.1+修补程序.6-稳定\u 3
你能帮帮我吗
提前感谢使用代理或vpn
您的ip地址被阻塞
你是支持公司代理还是使用中国社区镜像?@Nuts我来自伊朗。我使用vpn和不使用vpn进行了测试。我认为如果有公司代理,这个vpn可以解决它。这是真的吗?不总是这样:VPN本身可以在防火墙中被阻止。请检查:我在这个链接中测试解决方案,但它不适合我@坚果
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
provider: ^3.2.0
http: ^0.12.0+2
font_awesome_flutter: ^8.5.0
flutter_rating_bar: ^3.0.0