I'm trying to add a font to my Android project, so I can use it via XML. Unfortunately, I'm getting this error message:
Error:Error: The file name must end with .xml
I followed every step of the official Android tutorial and somehow this error occurs and I can't fix it.
You can't add
font.ttf
file inDrawable
folder
you need to create Assets folder in android you can create Assets folder like below image in Android studio
than create a font folder in Assets folder and put your custom font.ttf file in this folder like below image
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With