Cannot resolve character error for XML reference for drawing in Android Studio on Mac

I am new to Android Studio and quite new to development, so I might be missing out on something simple.

I am trying to import ic_action_search.png from the action bar icon pack. I downloaded the Action bar icon pack, selected 4 directories containing images (drawable-hdpi, drawable-mdpi, etc.) and copied them and pasted them into Android studio.

But in my menue_my.xml file I get

Unable to resolve character error

in line android:icon="@drawable/ic_action_search"

Here is a screenshot of my android studio with xml file

enter image description here

I added png in project mode and tried build> clean and build> rebuild with no success.

"Project" "Packages" , , "Android". , , res "Android".

+4
1

, , , ,

res/drawable/drawable-hdpi
res/drawable/drawable-mdpi
res/drawable/drawable-xhdpi
res/drawable/drawable-xxhdpi

res/drawable-hdpi
res/drawable-mdpi
res/drawable-xhdpi
res/drawable-xxhdpi

res/drawable, .

fooobar.com/questions/166065/...

+8

All Articles