목록Frontend/[Flutter Error] (17)
민프

이번 포스팅에서는 비동기 작업을 중간에 취소하는 방법 중 하나인 CancelableOperation을 소개하려고 합니다. 특히 BLoC(Cubit) 패턴에서 비동기 작업이 중첩되거나 화면 전환 시 작업이 취소되지 않아 발생하는 문제를 해결할 수 있는 좋은 방법입니다.문제상황Exception has occurred. StateError (Bad state: Cannot emit new states after calling close) 최근에 HomeCubit에서 게시글 목록을 불러오는 작업을 하던 중, 화면을 빠르게 이동하거나 여러 번 loadPosts()를 호출하면 이전 요청이 취소되지 않고 계속 실행되는 문제를 발견했습니다. 이 문제를 해결하기 위해 Flutter의 async 패키지에서 제공하는 Can..
Flutter Version을 3.24.0으로 올리고 Build를 하려고 하는데 아래와 같은 에러가 나왔다* What went wrong:Execution failed for task ':sign_in_with_apple:verifyReleaseResources'.> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action > Android resource linking failed ERROR:/Users/msoh/development/pushApp/push_now_app/build/sign_in_with_apple/intermediates/merged_res/release..
PlatformException(Exception encountered, read, javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT at cohttp://m.android.org.conscrypt.NativeCrypto.EVP_CipherFinal_ex(Native Method) at cohttp://m.android.org.conscrypt.OpenSSLEvpCipher.doFinalInternal(OpenSSLEvpCipher.java:152) at cohttp://m.android.org.conscrypt.OpenSSLCipher.engineDoFinal(OpenSSL..
// 현재 사용가능한 채널 목록 확인flutter channel// 안정적인 채널로 전환flutter channel stable// Flutter 업데이트flutter upgrade or downgrade// Flutter 버전 확인flutter --version// 이전 Gradle를 정리하여서 잠재적인 문제를 해결rm -rf ~/.gradle// flutter 캐시정리flutter cleanflutter pub get// 디버깅flutter run
onPressed: () async { // async 키워드 추가 bool isFirstGuide = await _getIsFirstGuide(); // await 키워드로 비동기 값을 기다림 if (isFirstGuide) { Navigator.pushReplacement( context, MaterialPageRoute( builder: (context) => PoseDetectorPage( exerciseData: widget.exerciseData, detailData: widget.detailData, ), ), ); } . . . Don't use 'BuildContext's across async gaps.Try rewriting the code to not reference the 'Bu..

결론적으로 아래 라이브러리를 dependencies에 넣어줌으로써 해결하였습니다. dependencies { implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" } 본론으로 들어가보면 E/AndroidRuntime( 7998): java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ProcessLifecycleOwner; E/AndroidRuntime( 7998): at com.google.mlkit.acceleration.internal.zzi.run(com.google.mlkit:acceleration@@16.0.0-beta1:1) E/AndroidRuntime(..

https://console.firebase.google.com/ 로그인 - Google 계정 이메일 또는 휴대전화 accounts.google.com 언제? 로그인 기능이 기존에는 본인의 Firebase Console에 SHA-1 를 등록하여서 기능을 구현하였습니다. 근데 다른 개발자의 모바일, 컴퓨터에서는 자꾸 아래 에러가 나와서 찾아보니 앱 KEYSTORE에 등록 된 SHA-1키를 등록해야하는데 개인의 SHA-1 키를 등록하니 안됐던 것이었네요. com.google.android.gms.common.api.ApiException: 10 해결? android Studio -> 터미널 -> ./gradlew signingReport을 입력하게 되면 현재 KEYSTORE에 등록 된 SHA-1 키가 등록되..
https://devtalk.kakao.com/t/flutter-misconfigured-error-description-invalid-android-key-hash-or-ios-bundle-id-or-web-site-url/129394 Flutter 카카오 로그인 misconfigured, error_description: invalid android_key_hash or ios_bundle_id or web_site_url 에러 kakao_flutter_sdk: ^1.4.2 kakao_flutter_sdk_user: ^1.4.1 사용중입니다. 디버그 모드로 카카오 로그인 기능을 구현해보고자 하는데, 계속 misconfigured, error_description: invalid android_key_..
W/om.example.aiex(23676): Throwing OutOfMemoryError "Failed to allocate a 115405 byte allocation with 166144 free bytes and 162KB until OOM, target footprint 268435456, growth limit 268435456" (VmSize 13972636 kB) E/LoadTask(23676): OutOfMemory error loading stream E/LoadTask(23676): java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 424472 free bytes and 414KB until OOM, t..
https://developer.apple.com/forums/thread/732335 TTS problem iOS 17 beta | Apple Developer Forums @apanda not really, unfortunately... didn't crash anymore while in foreground, but with app going in background (changing the AVAudioSession as inactive) when back in foreground (reactivating the AVAudioSession and speaking) the app crashes "more often". T developer.apple.com