I know this background image exists and it's in the following drawable folders:
The file is named coming_up.9.png
as it's a nine patch and I know this works because I'm doing the same with a number of other images.
Layout XML
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/coming_up">
The Error
Error:(213, 37) No resource found that matches the given name (at 'background' with value '@drawable/coming_up').
I've been dealing with this issue for a while now and I decided today was the day to tackle it. Here's how I solved the problem:
Steps I Took:
@drawable/checkbox_checked
to see what would happen - app ran fine with the new imagecheckbox_checked
in my resource folder /res
to see where it existedcheckbox_checked.png
was only in the main /drawable
foldercoming_up.9.png
to /drawable
from /drawable-mdpi
- still the same errorcoming_up.9.png
to coming_up.png
- workedcoming_up.png
back to coming_up.9.png
- still workedcoming_up.9.png
from /drawable
while leaving it in all of my other drawable folders - workedSeemingly this is a bug with Android Studio that was somehow resolved at step #5. Regardless this issue is solved so I hope this saves someone the time it took me to figure it out.