pub build fails due to urlencoded version numbers

Issue

Pub build throws the following error

Resolving dependencies...
Error on line 1, column 1 of  
https://pub.dartlang.org/api/packages/source_maps/versions/0.10.0%2B2:
Invalid version constraint: Could not parse version

It seems pub tries to update https://pub.dartlang.org/packages/source_maps version to 0.10.0+2. The url contains version number and its encoded from + sign to %2B.

pub version 1.6.0,
OS Fedora 19, Any ways to overcome this?

Solution

Pub version 1.6.0 didn’t yet support the + in version constraints.
You need to update to a newer version.

Answered By – Günter Zöchbauer

Answer Checked By – Mary Flores (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.