How to Connect Flutter App with Firebase [2024] Easy Setup!

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 35

  • @Appsenses
    @Appsenses  9 หลายเดือนก่อน +2

    if you are getting error please follow this instruction.
    1.open app level build.gradle
    2.change ' minSdkVersion flutter.minSdkVersion ' to ' minSdkVersion 21 '
    hope everything will works perfect.

  • @devs-ys6fu
    @devs-ys6fu 9 หลายเดือนก่อน +3

    Thanks, finally solved . I was struggling almost 10 days.

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน

      keep supporting

  • @jacejoji
    @jacejoji 9 หลายเดือนก่อน +2

    Thank you for providing such clear instructions! When is the next video coming up?

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +1

      Thanks for your support! working on the next video and aiming to upload it soon. Stay tuned!

  • @jithendra.k.sfirst_yr_b.sc9574
    @jithendra.k.sfirst_yr_b.sc9574 7 หลายเดือนก่อน +1

    it connected sir, for me also the change was instead of 4.4.1 firebase, i used 4.3.15 just as you showed in your video..
    THANKYOU

  • @Mohammed_Albaqer
    @Mohammed_Albaqer 8 หลายเดือนก่อน +8

    my android level build.gradle looks different and it doesnt have a buildScript{} should I add one?

    • @gopalakrishnadasari4002
      @gopalakrishnadasari4002 8 หลายเดือนก่อน

      Same😢

    • @zaitoontech
      @zaitoontech 8 หลายเดือนก่อน +1

      Me same, new gradle version don't have buildScript

    • @CommentsReader108
      @CommentsReader108 7 หลายเดือนก่อน

      ​​@@zaitoontech Bhai problem solve Hui ya nhi plz help

  • @harshitagrawal6334
    @harshitagrawal6334 9 หลายเดือนก่อน +2

    I was frustated from over 25 days because of the update of firebase, I could'nt connect my application to firebase. After this video I was able to connect with firebase, The change from 4.4.1 to 4.3.15 really works.
    Can you suggest what if we want to connect latest flutter sdk version which do not have the buildscript block in build.gradle file

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน

      therfore you need to write it in plugins section in project-level gradle file. like this-
      plugins {
      id 'com.android.application' version '7.3.0' apply false
      id 'com.google.gms.google-services' version '4.4.1' apply false
      }

  • @smarttransport7100
    @smarttransport7100 9 หลายเดือนก่อน +2

    thanks, for the tips i changed the version

  • @hilalshaaban
    @hilalshaaban 7 หลายเดือนก่อน +1

    I dont have a Dependencies section
    And where is the pludin section!?
    As i use flutter 3.22

  • @serdararc1742
    @serdararc1742 5 หลายเดือนก่อน +1

    Thank you bro

  • @imanerahmaoui04
    @imanerahmaoui04 8 หลายเดือนก่อน +2

    Thank you so much

  • @ayushthakur3826
    @ayushthakur3826 9 หลายเดือนก่อน +2

    I got error failed to load resource.intillizing firebase

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +3

      Check your Internet: Make sure your device or emulator has a working internet connection.
      Verify Firebase Setup: Double-check the files you got from Firebase (like google-services.json) and make sure they're in the right place in your Flutter project.
      Update Dependencies: Make sure you've added the right Firebase dependencies in your pubspec.yaml file and run flutter pub get to install them.
      Check Android Studio Setup: Ensure you've set up Firebase correctly in your Android project files (like build.gradle).
      Look for Errors: Run your app in Android Studio's debug mode and check the Logcat for any errors related to Firebase or the internet.
      Keep Things Updated: Make sure your Flutter, Android SDK, and Android Studio are up-to-date.
      Restart and Retry: Sometimes, simply restarting Android Studio or your device/emulator can solve the problem.
      Try on a Real Device: If you're using an emulator, try running your app on a real device to see if that makes a difference.

  • @anishprajapat1585
    @anishprajapat1585 8 หลายเดือนก่อน

    Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly., Exception, Cause: null, Stacktrace: java.lang.Exception: Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly.
    Please help

    • @CreativityOasis
      @CreativityOasis 8 หลายเดือนก่อน

      Did u get the solution?

  • @bohidorshon
    @bohidorshon 8 หลายเดือนก่อน +1

    Thank you :)

  • @imrozeqamar2579
    @imrozeqamar2579 9 หลายเดือนก่อน

    I recieve Error

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน

      details please!

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +2

      try this instruction please:
      1.open app level build.gradle
      2.change ' minSdkVersion flutter.minSdkVersion ' to ' minSdkVersion 21 '
      and then build the app. hope it will work. if not then provide details please.

  • @leykohos
    @leykohos 9 หลายเดือนก่อน

    not working dude...

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +2

      I'm sorry to hear that you're having trouble. Can you please provide more details about the issue you're encountering? That way, I can try to assist you better and ensure the tutorial works for you. Thanks for reaching out!

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +2

      try this instruction please:
      1.open app level build.gradle
      2.change ' minSdkVersion flutter.minSdkVersion ' to ' minSdkVersion 21 '
      and then build the app. hope it will work. if not then provide details please .

  • @muskanjha1741
    @muskanjha1741 7 หลายเดือนก่อน

    in my android/build.gradle don't have dependency section but app/build.gradle have dependency so can I use this one ??

  • @Jpes211
    @Jpes211 9 หลายเดือนก่อน +1

    what if i dont have the dependencies part on android/build.gradle? it seems my build.gradel didn't build with anything from allproyects upwards

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +2

      in that case you have to work on plugins section like this -
      plugins {
      id 'com.android.application' version '7.3.0' apply false
      id 'com.google.gms.google-services' version '4.4.1' apply false
      }

    • @Jpes211
      @Jpes211 9 หลายเดือนก่อน

      @@Appsenses I resolve it just copying a correct one from the start, from the build section and just adapt it to the data that I already had, thanks for the tutorial tho, it help me A LOT

  • @mavish1314
    @mavish1314 9 หลายเดือนก่อน

    * What went wrong:
    A problem occurred configuring root project 'android'.
    > Could not resolve all files for configuration ':classpath'.
    > Could not find com.google.gms.google-services: 4.4.1:.
    Required by:
    project :

    • @Appsenses
      @Appsenses  9 หลายเดือนก่อน +1

      make sure you did all of this:
      -- downloaded and included google-services.json file in app(src) repository
      -- in app level build.gradle you wrote minSdkVersion like this 'minSdkVersion 21' inside defaultconfig.
      -- in app level build.gradle you includes
      id "com.android.application"
      id "kotlin-android"
      id "dev.flutter.flutter-gradle-plugin"
      id 'com.google.gms.google-services'
      all of this plugins in plugins section
      -- in project level build gradle inside dependency section you included "classpath 'com.google.gms:google-services:4.3.15'', if you still got error use latest version and update you flutter sdk writing 'flutter upgrade' in terminal.
      if still there is error please notify me.

    • @hadil7921
      @hadil7921 8 หลายเดือนก่อน

      buildscript {
      ext.kotlin_version = '1.9.23'
      repositories {
      google()
      jcenter()
      }
      dependencies {
      classpath 'com.android.tools.build:gradle:8.7'
      classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      classpath 'com.google.gmd:google-services:4.4.1'
      }
      }
      plugins {
      // ...
      // Add the dependency for the Google services Gradle plugin
      id("com.google.gms.google-services") version "4.4.1" apply false

    • @hadil7921
      @hadil7921 8 หลายเดือนก่อน +1

      when u add pluging it works