In pubspec.yaml, if I use the following dependencies of firebase_core and firebase_messaging :
dependencies:
firebase_core: ^0.7.0
firebase_messaging: ^7.0.3
I get the following error message :
Because firebase_messaging >=7.0.3 <8.0.0-dev.7 depends on firebase_core ^0.5.0+1 and yourApp depends on firebase_core ^0.7.0, firebase_messaging >=7.0.3 <8.0.0-dev.7 is forbidden.
So, because youApp depends on firebase_messaging ^7.0.3, version solving failed.
pub get failed (1; So, because chat_app depends on firebase_messaging ^7.0.3, version solving failed.)
question from:
https://stackoverflow.com/questions/65921970/why-flutter-version-solving-failed-between-firebase-core-and-firebase-messaging 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…