2 years ago

#61268

test-img

Nithis Kumar

illegal Argument Exception from TextView android

The error I got from the log is Error inflating class TextView Caused by: java.lang.IllegalArgumentException: Failed to create internal object. maybe invalid font data

This happens in the SplashActivity in that layout file with the name of activity_splash.xml and it has TextView in it. If I remove the remove the TextView block the app runs fine but on further run if any activities that used TextView this crash occurs.

The crash log says maybe invalid font data but I don't use custom fonts for SplashScreen or for most of the text views. I only use custom font for some Dialogs and I added fonts inside res/font/ folder.

Help would be much appriciated.

android

textview

0 Answers

Your Answer

Accepted video resources