Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

can't resolve dependencies flutter

I am trying to add firebase functions to my flutter app in Android Studio. I have been following a YouTube video (https://www.youtube.com/watch?v=7UcM6Y12LEk) but when I run Put get I get the following errors:

Because build_node_compilers >=0.3.1 depends on build_modules ^2.11.3 which depends on analyzer >0.35.0 <0.40.0, build_node_compilers >=0.3.1 requires analyzer >0.35.0 <0.40.0.
Because build_resolvers >=1.4.0 <1.4.4 depends on analyzer ^0.40.1 and build_resolvers >=1.4.4 depends on analyzer >=0.40.1 <0.42.0, build_resolvers >=1.4.0 requires analyzer >=0.40.1 <0.42.0.
Thus, build_node_compilers >=0.3.1 is incompatible with build_resolvers >=1.4.0.
And because build_runner >=1.10.3 depends on build_resolvers ^1.4.0, build_node_compilers >=0.3.1 is incompatible with build_runner >=1.10.3.
So, because tonnah depends on both build_runner ^1.11.1 and build_node_compilers ^0.3.1, version solving failed.
pub get failed (1; So, because tonnah depends on both build_runner ^1.11.1 and build_node_compilers ^0.3.1, version solving failed.)

As you can see I would need to be able to reference 2 versions of the analyzer dependency. How can I resolve this issue?

question from:https://stackoverflow.com/questions/66055079/cant-resolve-dependencies-flutter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...