flutter firebase version solving failed

18,502

Solution 1

Change

 firebase_auth:  ^0.6.6

to

 firebase_auth:  ^0.8.0

You might also need to check other dependencies if the constraints are outdated.

You can also use the workaround mentioned in https://github.com/flutter/flutter/issues/12627#issuecomment-400037580

export FLUTTER_ROOT="/Users/something/flutter"
pub upgrade

to get information for what dependencies updates are available.

Solution 2

just add this line of code in your pubspec

dependency_overrides:
  firebase_core: 0.3.0

this will override the dependency, and you can use whatever version you want. you might need to change it the version of the package.

my code example:

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.0
  file_picker: ^3.0.0
  hive: ^2.0.0
  hive_flutter: ^1.0.0

dependency_overrides:
  path_provider: 2.0.1
Share:
18,502
Midhilaj
Author by

Midhilaj

I started coding life when I was studying in higher secondary class. Then I started to develop the application with "Visual Studio 2010". Opensource event in Kochin university was a turning point in my life which helped me to realize the power of open source. Then I started to use Ubuntu which helped me to learn a lot of tools, programming language, and framework. When I was in the 3rd semester in computer science and engineering, our new teacher forced me to develop an android app. From then I started to code in Android and I developed an app for our college. After getting the reviews, I realized that my skill is in coding. I spend more time in coding and now I can say that I am a professional programmer. I developed more than 20 apps. I focused on e-commerce app development and succeeded in that field. I also got 3 clients in e-commerce and successfully developed apps for them. I develop the admin website using angular2 since it helps to develop the website without refreshing for every action. All server request is done in the background and user feel the website like desktop software and in the future, I can make it as desktop software by using Electron (at that time open cart and PrestaShop admin website will refresh and take more time while performing any actions). My first server-side programming language is PHP (Rest API jacwright/RestServer and Slim Framework). I use firebase to develop 95% of my native app (Java, SQLite) and website(they are providing web hosting with SSL for free and it is highly secure and we don't need to worry about server-side script and server performance). My e-commerce app has the necessary features and an admin panel for admin to manage product, orders, delivery time, home page listing, category and category images, text field colors, etc I also successfully implemented an online payment gateway (instamojo) in my e-commerce apps I also developed an e-commerce app with the Flutter (Dart,sqflite ) using Shopify Rest API and implemented google map custom location picker. Flutter is amazing. It takes only a few days to develop the app with flutter when compared to app development time with android java. My technical guru is Google and stack overflow. My knowledge of coding life is from Google and StackOverflow. StackOverflow helped me to solve my doubts and issues during coding, at any time. I use Gitlab rather than GitHub because for the private project we need to pay for GitHub and my projects are not fully open-source. Gitlab allows publishing private project without any fee https://in.linkedin.com/in/midhilaj Flutter developer

Updated on December 09, 2022

Comments

  • Midhilaj
    Midhilaj over 1 year

    Because firebase_storage >=2.0.0 depends on firebase_core ^0.3.0 and firebase_auth 0.6.6 depends on firebase_core ^0.2.5+1, firebase_storage >=2.0.0 is incompatible with firebase_auth 0.6.6. And because no versions of firebase_auth match >0.6.6 <0.7.0, firebase_storage >=2.0.0 is incompatible with firebase_auth ^0.6.6. So, because store_manager_erp_next depends on both firebase_auth ^0.6.6 and firebase_storage ^2.1.0+1, version solving failed.


    I am new in flutter, please help me to solve this issue

    banner: ^0.1.3
      cloud_firestore: ^0.8.2  
    
      http: ^0.12.0
        # The following adds the Cupertino Icons font to your application.
      # Use with the CupertinoIcons class for iOS style icons.
      cupertino_icons: ^0.1.2
      #sqflite: any
      sqflite: ^0.13.0+1
      folding_cell: "^0.1.0"
      flutter_rating: ^0.0.2
      firebase_auth:  ^0.6.6
      firebase_database: ^1.0.5 
      firebase_storage: ^2.1.0+1
      fluttertoast: ^2.1.5
      progress_hud: ^1.1.0
      auto_size_text: ^0.3.0
      mongo_dart: ^0.3.4
      google_sign_in: ^3.0.4
      material_search: ^0.2.8
      flutter_secure_storage: ^3.1.2
      modal_progress_hud: ^0.1.2
      flutter_typeahead: ^0.4.1
     # flutter_facebook_login: ^1.1.1
      flutter_firebase_ui: ^0.0.13
      json_serializable: ^2.0.1
      flutter_spinkit: "^3.1.0"
      shared_preferences: ^0.4.3
      flutter_html: ^0.8.2
      #pinch_zoom_image: "^0.2.5"
      #photo_view: ^0.2.0
      splashscreen: ^1.1.0
      #shared_preferences: ^0.4.3
      badges: ^0.0.6
    
  • Midhilaj
    Midhilaj about 5 years
    Because flutter_firebase_ui 0.0.13 depends on firebase_auth ^0.6.2+1 and no versions of flutter_firebase_ui match >0.0.13 <0.1.0, flutter_firebase_ui ^0.0.13 requires firebase_auth ^0.6.2+1. So, because store_manager_erp_next depends on both firebase_auth ^0.8.0 and flutter_firebase_ui ^0.0.13, version solving failed.
  • Midhilaj
    Midhilaj about 5 years
    Because flutter_firebase_ui 0.0.13 depends on firebase_auth ^0.6.2+1 and no versions of flutter_firebase_ui match >0.0.13 <0.1.0, flutter_firebase_ui ^0.0.13 requires firebase_auth ^0.6.2+1. So, because store_manager_erp_next depends on both firebase_auth ^0.7.0 and flutter_firebase_ui ^0.0.13, version solving failed.
  • Midhilaj
    Midhilaj about 5 years
  • Günter Zöchbauer
    Günter Zöchbauer about 5 years
    flutter_firebase_ui wasn't updated since Oct 25, 2018 and is not compatible with newer firebase package versions. You would need to constrain to versions that are compatible with that package if you want to use it or create an issue in the flutter_firebase_ui repo to make it compatible with latest firebase packages.
  • Arun Balaji
    Arun Balaji about 5 years
    Try using these versions : android_alarm_manager: 0.2.3 android_intent: 0.2.1 battery: 0.3.0 camera: 0.2.9+1 cloud_firestore: 0.8.2+3 cloud_functions: 0.0.5 connectivity: 0.3.2 device_info: 0.3.0 firebase_admob: 0.7.0 firebase_analytics: 1.1.0 firebase_auth: 0.7.0 firebase_core: 0.2.5+1 firebase_database: 1.0.5 firebase_dynamic_links: 0.1.1 firebase_messaging: 2.1.0 firebase_ml_vision: 0.2.1 firebase_performance: 0.0.8+1 firebase_remote_config: 0.0.6+1 firebase_storage: 1.0.4 google_maps_flutter: 0.1.0 google_sign_in: 3.2.4
  • Arun Balaji
    Arun Balaji about 5 years
    image_picker: 0.4.12+1 local_auth: 0.3.1 package_info: 0.3.2+1 path_provider: 0.4.1 quick_actions: 0.2.2 sensors: 0.3.5 share: 0.5.3 shared_preferences: 0.4.3 url_launcher: 4.1.0+1 video_player: 0.9.0 webview_flutter: 0.2.0
  • Midhilaj
    Midhilaj about 5 years
    androidx issue occured with changed to 0.8.0