Font resource could not be retrieved

前端 未结 4 1238
迷失自我
迷失自我 2020-12-17 10:43

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

4条回答
  •  太阳男子
    2020-12-17 11:29

    Had this same issue, noticed a detail in the docs that helped:

    When you declare font families in XML layout through the support library, use the app namespace to ensure your fonts load.

    
    
      
      
    
    

    I had been using the 'android' namespace before, changing to the 'app' namespace made my fonts load on older devices correctly.

提交回复
热议问题