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 ?
- 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).
- 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
- Failed to launch emulator: Error: Emulator didn’t connect within 60 seconds
- Finished with error: Gradle task assembleDebug failed with exit code 1
- error: ‘Flutter/Flutter.h’ file not found when flutter run on iOS
- Cannot run with sound null safety because dependencies don’t support null safety
- Null check operator used on a null value
Leave a Reply