반응형
flutter에서 google map을 쓸려고 하면
Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create an already created platform view, view id: 0
위와 같은 에러를 접하게 될것이다. 생각보다 많은 이가 해당 에러 때문에 고생하고 있는 걸로 보인다.
간단한 해결책은
android stduio 기준 해당 프로젝트에 terminal이 있을 것이다.
해당 명령어를 사용하면 channel이 stable로 되어 있을 것이다.
>flutter channel
stable에서 master로 바꿔준다.
>flutter channel master
upgrade해준다 오류가 나면 오류 내용을 읽고
flutter upgrade --force를 해준다.
>flutter upgrade
android studio를 다시 실행해보자.
오류가 해결되어 있다!.
출처: