1

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

1

1 Answer 1

2

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 run dart --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 include path/to/flutter/bin/cache/dart-sdk/bin, or could try running flutter packages pub global activate flutter_plugin_tools.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.