Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected namespace prefix "app" found for tag TextView when I try to set fontFamily attribute

Tags:

android

xml

I set app:fontFamily="@font/montserrat_bold" on TextView and i get error: Unexpected namespace prefix "app" found for tag TextView. I use Android Studio 3.0. Is there any solution?

like image 232
husarz Avatar asked Dec 01 '22 11:12

husarz


1 Answers

Try changing TextView to android.support.v7.widget.AppCompatTextView.

like image 109
fightingCoder Avatar answered Dec 04 '22 13:12

fightingCoder