본문 바로가기

Mobile Programming11

Flutter - Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) 오류 발생 시 오류메시지 Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) Flutter 구글 로그인 구현 중 위와 같은 오류가 발생했다. 셋업한 환경은 다음과 같았다. 셋업 환경 1.GCP 사용 ( Not Firebase ) 2.OAuth 동의 3.사용자 인증 정보 등록 SHA-1 인증서 디지털 지문 등록 필자는 keytool을 사용할 때 jks 파일을 생성하지 않았다. 다음과 같이 입력 keytool -keystore ~/.android/debug.keystore -list -v -alias androiddebugkey -storepass androi.. 2023. 9. 15.
Flutter/Dart - 문제 해결. Error: XMLHttpRequest error. Case. Flutter http 라이브러리 사용하여 Server의 http 리소스를 얻는 과정에서 XMLHttpRequest error 오류 발생 ( Web Chrome 에서 Application 실행 ) 1. 원인 CORS(Cross-Origin Resource Sharing) 문제로 Front-end(Flutter) Localhost에서 Back-end(FastAPI) Localhost:8000으로 호출할 때, 같은 Localhost라도 서버에서는 이를 다른 origin으로 인식하므로 서버에서 모든 origin 요청을 허용해야 한다. For security reasons, browsers restrict cross-origin HTTP requests initiated from scripts. Fo.. 2022. 9. 6.
문제해결: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string: PC포맷과 함께 Flutter 3.10, Visual Studio 2022( develop for Windows with C++ ) 을 설치 한 뒤 flutter doctor를 수행한 결과 아래와 같은 오류 발생. C:\src\flutter>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19044.1706], locale ko-KR) [X] Android toolchain - develop for Android devices X Unable to locate Android SDK. Instal.. 2022. 5. 30.
Flutter - 간단한 초 타이머 만들기 (With StreamSubscription) 들어가며.. Stream객체를 사용하여 간단한 타이머를 만들어본다. 타이머 기능 중 stop, resume, restart 이벤트를 제어하기 위해 StreamSubscription객체를 사용한다. 개발환경 윈도우 / Flutter 2.10 / Android emulator / Visual Studio Code 📃 main.dart 모든 내용은 설명에 편리를 위해 main.dart에 코딩한다. import 'dart:async'; import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}).. 2022. 5. 6.