Category: 프로그래밍

프로그래밍 언어 관련 카테고리입니다.

Android프로그래밍

[Android 백그라운드서비스] 여기의 앱 코드로 위의 I/O 호출이 발생합니다. I/O 작업을 트리거하는 코드를 기본 스레드 외부로 이동해야 합니다. android.app.SharedPreferencesImpl.enqueueDiskWrite (SharedPreferencesImpl.java:691) ANR 오류 해결방법

백그라운드 서비스가 동작할 때 특정값들을 SharedPreferences를 사용하여 저장하고 있는데, 일부 스마트폰에서 ANR 문제가 발생되어 해결책을 찾고 있었다. ANR 오류 내용은 다음과 같다. 그리고 일부 ANR에...
Android프로그래밍

[안드로이드 빌드 오류]Duplicate class com.google.firebase.Timestamp found in modules jetified-firebase-common-21.0.0-runtime (com.google.firebase:firebase-common:21.0.0) and jetified-firebase-firestore-24.7.1-runtime (com.google.firebase:firebase-firestore:24.7.1) 오류 해결하기

Duplicate class com.google.firebase.Timestamp found in modules jetified-firebase-common-21.0.0-runtime (com.google.firebase:firebase-common:21.0.0) and jetified-firebase-firestore-24.7.1-runtime (com.google.firebase:firebase-firestore:24.7.1) 오류는 왜 발생되었나? 오류원인은 “com.google.firebase:firebase-bom:32.2.3” 라이브러리 버전에 따른 클래스 중복 발생한 케이스이다. AS-IS implementation(platform(“com.google.firebase:firebase-bom:32.2.3”))...
Android프로그래밍

[안드로이드 빌드오류] Cause: java.lang.IllegalStateException: Cannot find attribute fillColor). Check logs for more details. 해결방법

drawable-anydpi-v24/폴더의 ic_launcher_background.xml 에서 빌드과정에 오류가 발생하였다. Resource compilation failed (Failed to compile resource file: /Users/test/AndroidStudioProjects/test/app/build/generated/res/pngs/debug/drawable-anydpi-v24/ic_launcher_background.xml: . 잘 되던 것들이 안된다는 것은 구글에서 새로운 업데이트 발생했다는...
Android프로그래밍

[안드로이드 빌드 오류] Caused by: org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property ‘extraGeneratedResDir’ of task ‘:app:mapDebugSourceSetPaths’. 오류 발생 처리방법

gradle plugin 버전을 8.1.3으로 업그레이드 후 테스트를 하기 위해 휴대폰을 연결하고 실행하니 발생한 오류이다. Caused by: org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property ‘extraGeneratedResDir’ of task ‘:app:mapDebugSourceSetPaths’....
Android프로그래밍

[안드로이드] Fatal Exception: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.CHANNEL_NOTIFICATION_SETTINGS (has extras) } 오류 해결

파이어베이스 크래시틱스 화면에 새로운 오류가 잡혔다. Settings.ACTION_CHANNEL_NOTIFICATION_SETTINGS 가 존재하지 않는 안드로이드 폰이 있는 것 같다. 오류가 발생한 코드는 다음과같다. 오류가 발생한 안드로이드9 운영체제를 사용하는 KTC...
error: Content is protected !!