I'm getting version conflicts on UUID. Basically, cached_network_image depends on uuid 2.0.0 while the socket packages depend on uuid 1.0.3
uuid: ^1.0.3
cached_network_image: ^0.6.2
socket_io: ^0.9.0+1
socket_io_common: any
socket_io_common_client: ^0.10.0``
Because cached_network_image ^0.6.2 depends onflutter_cache_manager ^0.3.1 which depends on uuid ^2.0.0, cached_network_image ^0.6.2 requires uuid ^2.0.0.
So, because <PROJECT NAME> depends on both uuid ^1.0.3 and cached_network_image ^0.6.2, version solving failed.
I tried using UUID ^1.0.3 to include this version and 2.0.0 but to no avail.
Tried contacting the authors of the latter packages to upgrade their UUID dependency to the latest one but they haven't replied yet. I also opened an issue to their repo.
Here are some links:
https://pub.dartlang.org/packages/socket_io
https://pub.dartlang.org/packages/socket_io_common
https://pub.dartlang.org/packages/socket_io_common_client
https://github.com/rikulo/socket.io-client-dart
One thing you can do is replace the version numbers with any like below:
uuid: any
cached_network_image: any
socket_io: any
socket_io_common: any
socket_io_common_client: any
Let Pub's version constraint resolver do it's work .
Once version conflict is resolved, you can look at the pubspec.lock file and update the corresponding version numbers in your pubspec.yaml file .
This should unblock you from this problem.
You can try upgrading your version, once the corresponding plugins update their dependencies.
Had the author update the UUID package. Closing this thread!
Related
I'm getting this error. Please help.
Because google_fonts >=2.0.0-nullsafety.0 depends on crypto ^3.0.0 and uuid 2.2.2 depends on crypto ^2.0.0, google_fonts >=2.0.0-nullsafety.0 is incompatible with uuid 2.2.2.
And because no versions of uuid match >2.2.2 <3.0.0, google_fonts >=2.0.0-nullsafety.0 is incompatible with uuid ^2.2.2.
So, because flutter_firebase_login depends on both uuid ^2.2.2 and google_fonts ^2.1.0, version solving failed.
pub get failed (1; So, because flutter_firebase_login depends on both uuid ^2.2.2 and google_fonts ^2.1.0, version solving failed.)
I'm trying to add the dependency of google_fonts to my flutter project and facing this issue. Kindly help. Thanks
You need to upgrade your "uuid" package to some null safety version or you can use older versions of "google_fonts". If you want to update "uuid" you can use ^3.0.4 or if you want to use older "google_fonts" version you can use ^1.1.2 version.
I am using the Microblink framework for scanning the Emirates ID. I have successfully integrated the Microblink framework with version 4.4.0, but now I want to upgrade it to the latest version 4.9.1.
I have replaced the framework and bundle file with the latest one, the application starts crashing on the Scan emirates Id screen and shows the following log on console.
"Failed to load resource uae_name_dictionary. The program will now crash!"
Environment:
Xcode version:10.2
BlinkID SDK version: 4.9.1
What are you trying to scan? Emirates ID
Does anyone know how to deal with this kind of error? Thanks in advance !
Try removing the framework and bundle files completely and then adding the new ones (framework and bundle version 4.9.1) to your project.
In version 4.8.0 we renamed the framework from MicroBlink to Microblink to be more in line with our brand. Since your OS is case insensitive it doesn't detect the change in name, while the linker for example does.
Hope that helps.
My flutter isn't working any more.
Doesn't matter if I type:
flutter channel dev
flutter doctor
flutter update-packages --force-upgrade
All this commands shows this errror:
Building flutter tool...
Because flutter_tools depends on sockjs_client 0.3.5 which doesn't match any versions, version solving failed.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
What can I do?
You have to revise your pubspec.yaml file to check for the package sockjs_client 0.3.5 which doesn't match any package at official dart packages which is the sole repository to get Dart packages for flutter. Check the name and version again, and if it doesn't match one you have to remove it from pubspec.yaml if you want the build process to be successful.
I'm trying to add flutter_svg: ^0.5.1 in my project pubspec.yaml and facing following issue.
depends on flutter_svg >=0.0.2 which requires Flutter SDK version >=0.3.6 <2.0.0, version solving failed.
You might be able to use something like this to override the dependency:
dependency_overrides:
flutter_svg: '0.5.1'
Open the flutter_console.bat (on window) or flutter_console.sh (on linux) file from your downloaded root flutter folder. This should bring up a terminal running Flutter locally.
Now type flutter upgrade
This should resolve your issue considering its a version compatibility issue.
I've noticed on a few occasions that when I setup some dependencies in my pubspec.yaml pointing to the latest version, they aren't found when I run pub get.
For instance, the dependency source_gen. The latest version of source_gen is clearly 0.5.0+1. So I'll setup my pubspec.yaml file as follows:
dependencies:
source_gen: "^0.5.0+1"
Then I run pub get, and I get the following error:
Resolving dependencies...
Package source_gen has no versions that match >=0.5.0+1 <0.6.0 derived from:
- ServerErrors depends on version ^0.5.0+1
I tried several of the most recent versions, without much luck. Finally if I do the following:
dependencies:
source_gen: any
and then run pub get, source_gen version 0.4.7 is installed. I'm not sure I understand why. I'm using the dart sdk version 1.16.0. This is the second dependency I've had this issue with and I'm a little confused.
EDIT: As requested by Gunter, the full list of my dependencies:
dependencies:
http: "^0.11.3+7"
dartson: "^0.2.5"
intl: "^0.12.7+1"
mailer: "^1.0.0"
That's a known issue of pub. This means pub just wasn't able to resolve a compatible set of dependencies. Unfortunately the error message is misleading.
pub also prints the same error when one of the dependencies isn't compatible with the used Dart SDK version.