본문 바로가기
Development Solutions/Flutter & Dart

[flutter][firebase] [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() 오류 해결방법

by studio ODOC 2021. 11. 2.
반응형

[flutter][firebase]

[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()

오류 해결방법

 

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();

위 코드를 적용하자.

firebase를 사용하기전에 위 코드처럼 초기화 작업을 진행해주어야한다.

필자는 firebase관련 플러그인들의 버전을 업그레이드하다가 발생하여 이와 같이 해결함.

 

https://stackoverflow.com/questions/67429742/error-core-no-app-no-firebase-app-default-has-been-created-call-firebas

 

Error "[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()" is thrown

I have a main file which returns home page and on the home page I am trying to call a new file (test.dart). Now the problem is this test.dart file is throwing some errors which I am unable to solve...

stackoverflow.com

 

반응형