huzit
___을 입력해주세요
huzit
전체 방문자
  • 분류 전체보기 (137)
    • 안드로이드(Compose) (10)
      • UI (4)
      • 개념 (6)
    • 안드로이드 (50)
      • 기본개념 (6)
      • 응용 (4)
      • Debug (18)
      • Binding (3)
      • RecyclerView (5)
      • Firebase (6)
      • Retrofit (1)
      • Activity & Fragment (4)
    • 코틀린 (22)
    • 코딩테스트 (38)
      • 백준 (10)
      • 프로그래머스 (28)
    • 일상 (6)
    • CS 지식 (4)
    • 라즈베리파이 (7)

블로그 메뉴

  • 홈
  • 태그
  • 글쓰기
  • 관리

공지사항

인기 글

태그

  • 공돌카돈
  • Java
  • 공돌이파파
  • gts4mini
  • 브레빌 밤비노 플러스
  • RecyclerView
  • Android
  • Kotlin
  • jetpack
  • Debug
  • recyclerView ClickEvent
  • docker
  • 라즈베리 파이
  • 코틀린
  • 프로그래머스
  • firebase
  • IFTTT
  • compose
  • Retrofit
  • FCM

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
huzit

___을 입력해주세요

--- Failed to create image decoder with message 'unimplemented'
안드로이드/Debug

--- Failed to create image decoder with message 'unimplemented'

2023. 4. 10. 10:57
728x90

원인

Glide SVG이미지 로드 시 발생하는 에러, 버전에 따라 앱이 다운되는 경우도 있다.

Glide.with(requireContext()).load(R.drawable.ic_sunny).into(binding.weatherIv)

해결

drawable 정수값 대신 ContextCompat.getDrawable로 호출

fun setImage(drawable: Int){
    val image = ContextCompat.getDrawable(requireContext(), drawable) as VectorDrawable
    Glide.with(requireContext()).load(image).into(binding.weatherIv)
}

참고

 

안드로이드 Glide SVG 이미지 로드 관련 오류 해결 - Failed to create image decoder with message 'unimplemented'

Glide Vector 이미지 로드 시 : D/skia: --- Failed to create image decoder with message 'unimplemented' - 당황하지 말고 오류를 해결해보자 ⚒️

velog.io

 

728x90
저작자표시 (새창열림)

'안드로이드 > Debug' 카테고리의 다른 글

java.lang.NullPointerException: null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment  (0) 2023.04.18
RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dcc7ca6 u0 com.***.***/.ble.BleService}  (0) 2023.04.13
Caused by: java.lang.IllegalArgumentException: Char / is not a decimal digit  (0) 2023.04.10
SDK location not found  (0) 2023.03.13
Waiting For Debgger 무한 대기  (0) 2023.03.08
    '안드로이드/Debug' 카테고리의 다른 글
    • java.lang.NullPointerException: null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment
    • RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dcc7ca6 u0 com.***.***/.ble.BleService}
    • Caused by: java.lang.IllegalArgumentException: Char / is not a decimal digit
    • SDK location not found
    huzit
    huzit
    simple is best

    티스토리툴바