반응형
Android Studio: 4.0
Dart: 193.7361
Flutter: 46.0.2
Add this to your package's pubspec.yaml
file
dependencies:
firebase_core: ^0.4.5
Android
Plugin project :firebase_core_web not found. Please update settings.gradle.
add code in 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
}
반응형
'Development > Flutter - Package' 카테고리의 다른 글
Flutter 앱에 AdMob 광고 달기 (firebase_admob) (6) | 2020.07.14 |
---|---|
Flutter 앱에 Google Analytics 연결 (firebase_analytics) (0) | 2020.07.03 |
Flutter 앱에 웹뷰(Webview) 추가하기 (webview_flutter) (5) | 2020.03.24 |
추천 Package] flutter_slidable (0) | 2020.02.22 |
Flutter 앱에 Firebase 추가 (0) | 2020.02.13 |