bumptech / bumptech/glide

Glide Resources$NotFoundException: If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way.

Open
#3,086 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**: 4.7.1

**Device/Android Version**: Android version 4

**Issue details / Repro steps / Use case background**:
Sometimes glide fails to load vector drawables with the message

> Resources$NotFoundException: File res/drawable/as_shared_placeholder_empty.xml from drawable resource ID #0x7f0800b8. If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
Mostly used with
```java
drawable?.let { drawableInner ->
v?.let { view ->
context?.let { context ->
Glide.with(context)
.load(drawableInner)
.apply(RequestOptions()
.placeholder(R.drawable.as_shared_placeholder_empty)
.fitCenter())
.into(view)
}
}
}
```

**Stack trace / LogCat**:
http://crashes.to/s/acc26b9c547

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.