【问题标题】:error APT2260 resource font not found in Xamarin.Android project在 Xamarin.Android 项目中找不到错误 APT2260 资源字体
【发布时间】:2020-12-12 09:38:36
【问题描述】:

我现在正在尝试寻找 Calligraphy 的替代品,因为我必须将我的项目升级到 API 级别 29。我对新端口没有任何运气,所以我正在尝试以下建议的本机解决方案:

https://medium.com/@davidmigloz/migrating-custom-fonts-from-calligraphy-to-android-fonts-3b635fd945dc

https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml?authuser=1

https://devblogs.microsoft.com/xamarin/embedded-fonts-xamarin-forms/

https://johnthiriet.com/xamarin-android-custom-font/

很遗憾,我收到以下错误:

错误 APT2260:找不到资源字体/IndieFlower(又名 com.________)。

我按照说明将字体从 Assets 移动到 Resources/font 文件夹,但仍然出现此错误。

【问题讨论】:

    标签: xamarin fonts xamarin.android


    【解决方案1】:

    看起来字体名称必须全部小写!当文件位于 Assets 文件夹中时,不必这样,但显然当它们位于 Resource/font 中时,它们必须如此。

    【讨论】:

    • 感谢分享。不要忘记接受答案。
    猜你喜欢
    • 1970-01-01
    • 2018-12-07
    • 2019-04-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-02
    • 1970-01-01
    • 2015-04-24
    相关资源
    最近更新 更多