해결된 질문
작성
·
698
0
구글 폰트를 사용하면 계속 아래와 같은 오류가 뜹니다.
flutter: Error: google_fonts was unable to load font NotoSans-Bold because the following exception occurred:
Exception: Failed to load font with url https://fonts.gstatic.com/s/a/18e3a4e5a713559a074e8c5482279ccad0cf81a0e5762304e0ddf94b5dd1ebac.ttf: HandshakeException: Connection terminated during handshake
flutter: If troubleshooting doesn't solve the problem, please file an issue at https://github.com/material-foundation/flutter-packages/issues/new/choose.
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Failed to load font with url https://fonts.gstatic.com/s/a/18e3a4e5a713559a074e8c5482279ccad0cf81a0e5762304e0ddf94b5dd1ebac.ttf: HandshakeException: Connection terminated during handshake
#0 httpFetchFontAndSaveToDevice (package:googlefonts/src/google_fonts_base.dart:263:5)
<asynchronous suspension>
#1 loadFontIfNecessary (package:google_fonts/src/google_fonts_base.dart:180:11)
<asynchronous suspension>
Restarted application in 338ms.
답변 1
0
안녕하세요 구글 폰트를 다운로드 받는데에서 handshake 오류가 발생하는 것으로 보아,
혹시 vpn 사용하고 계시는지요? 아니면 개발하시는 장소가 혹시 중국에서 하실까요? 아니면 FLUTTER_STORAGE_BASE_URL 를 중국 storage로 설정하셨을까요?
확인이 필요해 보입니다.