Can’t use srcCompat for ImageViews in android

Don’t

android:srcCompat="https://stackoverflow.com/questions/35645148/@drawable/wallpaper"

Do

app:srcCompat="https://stackoverflow.com/questions/35645148/@drawable/wallpaper"

as it srcCompat attribute is actually defined within AppCompat library.

Important you will need to add appropriate namespace for this.

xmlns:app=”http://schemas.android.com/apk/res-auto”

Important

what you are getting it seems like it is just a lint error that can be
ignored. I have tried and have the same error, but it is working
correctly.

you can use tools:ignore="MissingPrefix" to avoid seeing this error temporarily.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)