Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrading flutter to 1.12 and the cached_network_image to ^2.0.0-rc.1 flutter packages get returns version solving failed. #473

Closed
thoffart opened this issue Dec 12, 2019 · 4 comments

Comments

@thoffart
Copy link

After upgrading flutter to 1.12 and the cached_network_image to ^2.0.0-rc.1, flutter packages get returns version solving failed.

Running "flutter pub get" in gestor-mobile...                   
Because flutter_map 0.7.3 depends on cached_network_image ^1.1.0 and no versions of flutter_map match >0.7.3 <0.8.0, flutter_map ^0.7.3 requires cached_network_image ^1.1.0.

So, because gestor depends on both cached_network_image ^2.0.0-rc.1 and flutter_map ^0.7.3, version solving failed.
pub get failed (1; So, because gestor depends on both cached_network_image ^2.0.0-rc.1 and flutter_map ^0.7.3, version solving failed.)
exit code 1
@lacu
Copy link

lacu commented Dec 12, 2019

me too, after update to 1.12.13 +hotfix.5
`
ImageStreamCompleter load(NetworkImageWithRetry key) {
^
/e:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
/e:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(CachedNetworkImageProvider key) {
^
/e:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
/e:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/mbtiles_image_provider.dart:90:24: Error: The method 'MBTileImage.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(MBTileImage key) {
^
/e:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.``

@yobniares
Copy link

Same issue. I had this before and handled with it somehow, don't remember.

@amirmi17
Copy link

I have same issue and for now this changes in 'pubspec.yaml' file work for me:


flutter_map: 
   git:
     url: git://github.com/okaxaki/flutter_map.git
     ref: fix/support-flutter-1.10

and

flutter_map_marker_cluster:
   git:
      url: git://github.com/emidiao/flutter_map_marker_cluster.git
      ref: e1b4ad9c6d300649acd448a9ba9069d865845686

@johnpryan
Copy link
Collaborator

This should be fixed in 0.8.0. See #480 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants