“RuntimeException: native typeface cannot be made” when loading font

后端 未结 9 1716
生来不讨喜
生来不讨喜 2020-12-05 09:35

I am attempting to use a custom font for a TextView on Android, following the guide here. Using the same font, same code, same everything, I get this in adb logcat:

9条回答
  •  悲哀的现实
    2020-12-05 09:42

    FYI. My reason for the crash is some reason caused by Eclipse. All I did is just cleaning the project and ran again, then it works.

    Firstly, I tried the custom font in my test project which I use to try some new functions.It worked on the very first time. But it didn't work on the project i'm working on until I did as above.

    So try as many methods as you can.

提交回复
热议问题