I upgraded to Android Support Library 23.2.0 and added
vectorDrawables.useSupportLibrary = true
to my build.gradle, so that I have vector drawable support for apis lower than 21. (See here for details).
I also replaced
android:src="@drawable/ic_create_black_24dp"
with
app:srcCompat="@drawable/ic_create_black_24dp"
in every Imageview that uses vector drawables.
The app compiles and works perfectly fine, but code analysis reports:
Error:(56, 9) Unexpected namespace prefix "app" found for tag
ImageView
Why is this the case? Why is it compiling although I am getting errors?
EDIT: I have added
xmlns:app="http://schemas.android.com/apk/res-auto"
in my root layout.