Glide Resources$NotFoundException: If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way.
- 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
Assessment
This issue has not been assessed yet.