close

[Solved] Plugin project :firebase_core_web not found. Please update settings.gradle.

Hello Guys, how are you all? Hope you all are fine. You might face Plugin project :firebase_core_web not found. Please update settings.gradle as this error in a flutter. Here I come with all possible solutions for this error.

we are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How Plugin project :firebase_core_web not found. Please update settings.gradle. This Error occurs ?

I try to connect Android project to Firebase but I get this error as I added the following to pubsec.yaml:

firebase_auth: ^0.16.0
cloud_firestore: ^0.13.5

when I gradle run and it is not working

Plugin project :firebase_core_web not found. Please update settings.gradle.

How To Solve Plugin project :firebase_core_web not found. Please update settings.gradle ?

  1. How to solve Plugin project :firebase_core_web not found. Please update setting.gradle error in flutter ?

    to solve Plugin project :firebase_core_web not found. Please update setting.gradle error in flutter By default, Flutter supports Android SDK v16 (Jelly Bean, released 2012), but multidex doesn't really work with Jelly Bean (though, it's possible). Configuring Jelly Bean to work is beyond the scope of this codelab, so we'll change the minimum target SDK version from v16 to v21 (Lollipop, released 2014).

  2. Plugin project :firebase_core_web not found. Please update setting.gradle

    to solve Plugin project :firebase_core_web not found. Please update setting.gradle error in flutter By default, Flutter supports Android SDK v16 (Jelly Bean, released 2012), but multidex doesn't really work with Jelly Bean (though, it's possible). Configuring Jelly Bean to work is beyond the scope of this codelab, so we'll change the minimum target SDK version from v16 to v21 (Lollipop, released 2014).

Solution 1

Actually As per FireBase Documentation you need to use minSdkversion 23 when you are using firebase in flutter. By updating minSdkversion this error will be resolve.

Here Is Firebase Docs.

By default, Flutter supports Android SDK v16 (Jelly Bean, released 2012), but multidex doesn’t really work with Jelly Bean (though, it’s possible). Configuring Jelly Bean to work is beyond the scope of this codelab, so we’ll change the minimum target SDK version from v16 to v21 (Lollipop, released 2014).

To change the minimum target SDK version:

  • Open android/app/build.gradle, then find the line that says minSdkVersion 16.
  • Change that line to minSdkVersion 21.
  • Save the file.

This Solution work Perfectly for me.

Solution 2

Change file settings.gradle to this

include ':app'

def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
    pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
    def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
    include ":$name"
    project(":$name").projectDir = pluginDirectory
}

Solution 3

Just make the

minSdkVersion 21

Summery

So it’s all About All possible solutions. Hope this above all solution helped you a lot. Comment below Your thoughts and your queries. Comment Below on your suggestion.

Check Out Below Article

Leave a Comment

%d bloggers like this: