I'm using compileSdk
and targetSdk
version 27 and in last release I used new font resource feature for my project but after a day I got 3 crashes for this line of code
Typeface typeface = ResourcesCompat.getFont(this, R.font.my_font);
and the crash report says it's because of android.content.res.Resources$NotFoundException
and Font resource could not be retrieved. All 3 crashes happened for users with android version 5.1.1
. Is this a bug in support library or I'm doing something wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…