Reputation: 13031
When adding a VectorDrawable as the src of my ImageView using the new Support Library 23.2
app:srcCompat="@drawable/ic_like"
I get the app to compile successfully and the vector drawable to show correctly. But, Android studio showing me an error saying:
Unexpected namespace prefix "app" found for tag ImageView
Any advise on how to fix it? or is it just a bug and should be ignored?
EDIT:
Forgot to mention that i have added the xmlns:app="http://schemas.android.com/apk/res-auto" declaration
Upvotes: 6
Views: 1086
Reputation: 654
It is a little worse than just an error message. In my case, it also prevents proper rendering of the image in Studio's Design mode.
Update: Fixed in Android Studio version 2.1
Upvotes: 1
Reputation: 412
Seems like it is just a lint error that can be ignored. I have updated and have the same error, but it is working correctly.
An Android Studio update will probably fix this. I am running the latest Canary build, which contains the same error currently.
Upvotes: 5