Skip to content

Instantly share code, notes, and snippets.

@marcos-bah
Last active June 10, 2020 15:36
Show Gist options
  • Save marcos-bah/9fd39eb31187d919280aa7573a8b7a86 to your computer and use it in GitHub Desktop.
Save marcos-bah/9fd39eb31187d919280aa7573a8b7a86 to your computer and use it in GitHub Desktop.
Resolução para: [firebase_core_web , firebase_auth_web, cloud_firestore_web ] Plugin project :firebase_auth_web not found. Please update settings.gradle.
// app -> android -> settings.gradle
// Please add this in flutte
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment