Reputation: 12425
When I try to install plugin tools with
pub global activate flutter_plugin_tools
I get this error.
flutter git:(master) ✗ pub global activate flutter_plugin_tools Resolving dependencies... (1.0s) Package http has no versions that match >=0.11.3+13 <0.12.0 derived from: - flutter_plugin_tools 0.0.1-dev depends on version ^0.11.3+13
Upvotes: 1
Views: 317
Reputation: 116738
The issue is probably old Dart SDKs that are in your path. Check your path and remove them.
Originally answered on the GitHub issue by Devin Carew:
If you're running
pub global activate
directly, it's using the version of the dart sdk that's on your path, which may be different than the version shipped with flutter (you can rundart --version
to see the version on your path). I suspect that you have an old version of dart, and pub is having trouble resolving a version of package:http that will work with it. You'll probably want to update your path to includepath/to/flutter/bin/cache/dart-sdk/bin
, or could try runningflutter packages pub global activate flutter_plugin_tools
.
Upvotes: 2