在 Xamarin.Android 项目中找不到错误 APT2260 资源字体

问题描述 投票:0回答:2

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

https://medium.com/@davidmigloz/migration-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.________)。

我按照有关将字体从资产移动到资源/字体文件夹的说明进行操作,但仍然收到此错误。

xamarin fonts xamarin.android
2个回答
1
投票

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


0
投票

AndroidManifest.xml 的“包名称”

© www.soinside.com 2019 - 2024. All rights reserved.