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