Resources$NotFoundException: File res/color/dark.xml from drawable resource
I have that error. I tried clean project. I can see “dark” in “R” file. I can use it in project: I mean autocomplete working well, but when I turn on app on emulator there is this error. There is how I use it:
songList.setSelector(R.color.dark);
The correct way to use
setSelector()is:Create a xml in res/drawable
For example, let
res/drawable/selector.xmlThen declare black in your
res\values\strings.xmlThen set selector as
Note: Answer ideas taken from this post.
EDIT:
Try cleaning your project in Eclipse and re-starting Eclipse.