Version conflicts - Help needed

HebaAshraf

New member
I followed the installation guide but i am facing this error:

Resolving dependencies... (2.1s)
Because macros >=0.1.2-main.2 <0.1.2-main.4 depends on _macros 0.3.1 from sdk and analyzer >=6.6.0 <6.9.0 depends on macros >=0.1.2-main.3 <0.1.3, analyzer >=6.6.0 <6.9.0 requires
_macros 0.3.1 from sdk or macros >=0.1.2-main.4 <0.1.3.
And because macros >=0.1.2-main.4 <0.1.3-main.0 depends on _macros from sdk which doesn't exist (could not find package _macros in the Dart SDK), analyzer >=6.6.0 <6.9.0 is
forbidden.
And because analyzer >=6.9.0 <7.3.0 depends on macros >=0.1.3-main.0 <0.1.4 and custom_lint 0.7.0 depends on analyzer ^6.6.0, custom_lint 0.7.0 requires macros >=0.1.3-main.0 <0.1.4.
And because no versions of macros match >0.1.3-main.0 <0.1.4 and macros 0.1.3-main.0 depends on _macros 0.3.3 from sdk, custom_lint 0.7.0 requires _macros 0.3.3 from sdk.
So, because no versions of _macros from sdk match 0.3.3 and talawa_lint depends on custom_lint 0.7.0, version solving failed.



can anyone help?
 
I followed the installation guide but i am facing this error:

Resolving dependencies... (2.1s)
Because macros >=0.1.2-main.2 <0.1.2-main.4 depends on _macros 0.3.1 from sdk and analyzer >=6.6.0 <6.9.0 depends on macros >=0.1.2-main.3 <0.1.3, analyzer >=6.6.0 <6.9.0 requires
_macros 0.3.1 from sdk or macros >=0.1.2-main.4 <0.1.3.
And because macros >=0.1.2-main.4 <0.1.3-main.0 depends on _macros from sdk which doesn't exist (could not find package _macros in the Dart SDK), analyzer >=6.6.0 <6.9.0 is
forbidden.
And because analyzer >=6.9.0 <7.3.0 depends on macros >=0.1.3-main.0 <0.1.4 and custom_lint 0.7.0 depends on analyzer ^6.6.0, custom_lint 0.7.0 requires macros >=0.1.3-main.0 <0.1.4.
And because no versions of macros match >0.1.3-main.0 <0.1.4 and macros 0.1.3-main.0 depends on _macros 0.3.3 from sdk, custom_lint 0.7.0 requires _macros 0.3.3 from sdk.
So, because no versions of _macros from sdk match 0.3.3 and talawa_lint depends on custom_lint 0.7.0, version solving failed.



can anyone help?
Hi HebaAshraf, I had the same issue. Switching to Flutter 3.3.5 resolved it.
I recommend using FVM to manage Flutter versions.
Run fvm flutter pub get in the project after switching.
 
The error which you encountered was because you are probably using newer dart and flutter versions. If you go in "pubspec.ymal" file in root dir there you can see the upper limit for dart is "3.6.2" so you should use flutter versions which supports that dart version. I have faced the same issue and solved it by using flutter v3.27.4 you can use other versions but this one worked for me also use FVM if you are not using.

hope it helps
 
Back
Top