renggli / dart-xml

Lightweight library for parsing, traversing, and transforming XML in Dart.
http://pub.dartlang.org/packages/xml
MIT License
223 stars 52 forks source link

Dependency issues #157

Closed FilipeOS closed 1 year ago

FilipeOS commented 2 years ago

Hi there,

Can someone please advise me why this is happening and help me point to the right direction?

Basically I had to updgrade the entire app and this is pissing me off:

environment:
  sdk: ">=2.17.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.5
  package_info: ^2.0.2
  intl: ^0.17.0
  fluttertoast: ^8.1.1
  google_maps_flutter: ^2.2.1
  xml: ^6.2.2
  http: ^0.13.5
  url_launcher: ^6.1.6
  shared_preferences: ^2.0.15
  json_serializable: ^6.5.4
  flutter_native_splash: ^2.2.14

Flutter and dart is updated properly.

I get this issue:

Because xml >=6.2.0 depends on collection ^1.17.0 and every version of flutter from sdk depends on collection 1.16.0, xml >=6.2.0 is incompatible with flutter from sdk.
So, because bcppark depends on both flutter from sdk and xml ^6.2.2, version solving failed.
pub get failed (1; So, because bcppark depends on both flutter from sdk and xml ^6.2.2, version solving failed.)
renggli commented 2 years ago

Sorry, there is not much I can do here.

However, there is nothing that forces you to upgrade to the latest version of this library, you can always stick with an older version of this package until the other libraries have caught up.

keylinwu commented 2 years ago

@FilipeOS I was having some issues as well with flutter_test and flutter_localization where the collection library version mismatched those other two.

Because xml >=6.2.0 depends on collection ^1.17.0 and every version of flutter_localizations from SDK
 depends on collection 1.16.0, xml >=6.2.0 is incompatible with flutter_localizations from SDK.

Solution for me was downgrade and using xml: ^6.1.0

FilipeOS commented 2 years ago

@FilipeOS I was having some issues as well with flutter_test and flutter_localization where the collection library version mismatched those other two.

Because xml >=6.2.0 depends on collection ^1.17.0 and every version of flutter_localizations from SDK
 depends on collection 1.16.0, xml >=6.2.0 is incompatible with flutter_localizations from SDK.

Solution for me was downgrade and using xml: ^6.1.0

I did the same today and worked, thank you