
main.dart에 드래그 해놓은 부분이 계속 오류가 났다.

해결한 뒤에 글을 작성한거라 오류 캡쳐본은 없지만 오류 내용은 다음과 같았다.
Exception has occurred.
PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null))
결론적으로 해결방법은 아래와 같다.
1. 패키지 버전 최신화
$flutter pub upgrade
2. 1번해도 안되면 진행
$flutter clean
$flutter pub get
$flutterfire configure
flutterfire configure로 다시 firebase_options 파일을 다시 생성해 준 후 실행시키니 오류 없이 잘 작동했다.
왜 오류가 난건데?
- firebase 관련된 패키지들의 버전이 호환되지 않아서 그런 것 같음.
'오류해결' 카테고리의 다른 글
| TypeError: Cannot destructure property '변수명' of 'req.body' as it is undefined. (0) | 2024.06.02 |
|---|---|
| express에서 API 구현시 URL parameters 받는 방법 (0) | 2024.05.29 |
| Node.js에서 .env 변수 안불러와짐 (0) | 2024.05.24 |
| mariaDB와 workbench 연동 오류 (0) | 2024.05.10 |
| [Flutter] Solved - flutter doctor 오류(Xcode - cocoapods) (0) | 2023.11.21 |