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
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’.
flutter_web_plugins
is part of the core Flutter libraries, it should work having this in yourpubspec.yaml
:And your
pubspec.lock
will look like this: