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)
}
참고
728x90