skip to Main Content

more info:

`pub get failed
command: "/usr/local/dev/tooling/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --color --directory . get --example"
pub env: {
  "FLUTTER_ROOT": "/usr/local/dev/tooling/flutter",
  "PUB_ENVIRONMENT": "flutter_cli:get",
  "PUB_CACHE": "/Users/ziv_l/.pub-cache",
}
exit code: 69`

and in pubspec.lock file:

flutter_web_plugins:
    dependency: "direct main"
    description:
      name: flutter_web_plugins
      sha256: bb8dcba2b000b9230e5fbbd726eb8199fe9313ca1e317d080d4e26bb3a5ca5a2
      url: "https://pub.mpflutter.com"
    source: hosted
    version: "1.2.1"

could you please tell me how solve the problem?

2

Answers


  1. I think your url in pubspec.lock file is wrong because all the plugins are hosted by pub.dev .so you should use ‘https://pub.dev’.

    Login or Signup to reply.
  2. flutter_web_plugins is part of the core Flutter libraries, it should work having this in your pubspec.yaml:

    dependencies:
      # ...
      flutter_web_plugins:
        sdk: flutter
    

    And your pubspec.lock will look like this:

      flutter_web_plugins:
        dependency: "direct main"
        description: flutter
        source: sdk
        version: "0.0.0"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search