简体   繁体   中英

version solving failed in flutter

today I was trying to integrate firebase but when I did pub get it throws me version error like-:

C:\Src\flutter\bin\flutter.bat --no-color pub get
Running "flutter pub get" in fire...                      

Because firebase_auth 0.18.4+1 depends on firebase_core ^0.5.3 and no versions of firebase_auth match >0.18.4+1 <0.19.0, firebase_auth ^0.18.4+1 requires firebase_core ^0.5.3.
So, because fire depends on both firebase_auth ^0.18.4+1 and firebase_core ^0.6.0, version solving failed.
pub get failed (1; So, because fire depends on both firebase_auth ^0.18.4+1 and firebase_core ^0.6.0, version solving failed.)
Process finished with exit code 1

following are the dependencies that I am using right now...


dependencies:
  flutter:
    sdk: flutter


#  cupertino_icons: ^1.0.1
  intl:
  cloud_firestore: ^0.15.0
  firebase_auth: ^0.18.4+1
  firebase_core: ^0.6.0
 

does any know how to solve this kind of error as I tried to change the version number but then I show an error in core or auth...

You can use any :

dependencies:
  flutter:
    sdk: flutter


#  cupertino_icons: ^1.0.1
  intl:
  cloud_firestore: ^0.15.0
  firebase_auth: any
  firebase_core: any

dependencies: cloud_firestore: ^4.0.5 firebase_auth: any flutter: sdk: flutter

dev_dependencies: flutter_lints: ^1.0.0 flutter_test: sdk: flutter

Or you can use this version dependencies: cloud_firestore: ^0.13.4+2 firebase_auth: ^0.15.5+3 flutter: sdk: flutter

you can use this. Any will help you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM