개발/Flutter

[Error][firebase] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

leebera_ 2022. 8. 4. 17:25

Error: Required named parameter 'auth' must be provided.

위 문제도 이 해결방법과 똑같이 해결함

 

문제점

firebase 관련된 패키지들의 버전이 호환되지 않아 발생한 것으로 보임

 

해결방법

firebase 관련 패키지들의 버전 최신화

flutter pub upgrade 설치된firebase패키지이름

 

최신화만 해선 동작하지 않으면 아래 방법 하나씩 해보기

 

  • flutter clean 실행 후 flutter pub get 실행
  • flutterfire configure로 firebase_options파일 재생성

 


 

참고

 

[Solved] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

To Solve Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) Error You Just need to

fluttercorner.com

 

Error: Required named parameter 'auth' must be provided. · Issue #9216 · firebase/flutterfire

../../Flutters/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.4.0/lib/src/recaptcha_verifier.dart:57:27: Error: Required named parameter 'auth' must be provided. [ +101 ms] _fac...

github.com