Font asset not found helvetica.ttf on lollipop

If you are working on Android Studio make sure your asset folder is under main and not res This worked for me


Now it's better to use for custom fonts this approach

Store fonts in res/font

To get typeface use :

Typeface typeface = ResourcesCompat.getFont(context, R.font.myfont);

I had this problem too before I realized I didn't put "fonts/" before the .otf file

 Typeface font = Typeface.createFromAsset(getAssets(),"fonts/TTMastersDEMOBlack.ttf");

This worked for me. In my case it didn't work because I created assets folder in res and not in main.

enter image description here