Flutterでビルドした時のエラーメッセージ「firebase_core_web not found.」の対策方法について紹介します。
【エラー】「firebase_core_web not found.」
FlutterでAdmob広告を組み込んだAndroidアプリのビルド時に、以下のメッセージが出ることがあります。
Plugin project :firebase_core_web not found. Please update settings.gradle.
参考文献;https://github.com/FirebaseExtended/flutterfire/issues/2599
● [プロジェクトフォルダ] -> [android] -> [settings.gradle]ファイルを開き、以下の内容を追加することでエラーが解消されました。
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 }
【Flutter入門】iOS、Android、Windowsアプリ開発
FlutterによるiOS、Android、Windowsアプリ開発について入門者向けに紹介します。
コメント