Bloc: upgrade v2.0.1 failed

Created on 19 Nov 2019  路  2Comments  路  Source: felangel/bloc

Because xxx depends on flutter_bloc ^2.0.1 which doesn't match any versions, version solving failed.
pub get failed (1; Because xxx depends on flutter_bloc ^2.0.1 which doesn't match any versions, version solving failed.)

I am getting this error when upgrading to v2.0.1.
problem might be caused by pub mirror site for China.

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

related issues I found

https://github.com/flutter/flutter/issues/20809#issuecomment-416147950

question

Most helpful comment

wow, quick answer! I'll try it, thx! ^_^

All 2 comments

Hi @lvyandev 馃憢
Thanks for opening an issue!

I think as you mentioned the problem is due to the pub mirror not having a reference to the latest version of flutter_bloc.

You can temporarily point to the git url if you'd like

flutter_bloc:
    git:
      url: https://github.com/felangel/bloc
      path: packages/flutter_bloc
      ref: 4f0a73addd95f207860421e4afc5d7f108a98da5

Hope that helps 馃憤

wow, quick answer! I'll try it, thx! ^_^

Was this page helpful?
0 / 5 - 0 ratings