首页 > 解决方案 > Cordova 构建错误 - 无法找到属性 android:font

问题描述

我正在使用 Cordova 构建 Android 和 iOS 应用程序,但是当我运行构建时,我收到以下错误:

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight

标签: androidcordovabuild

解决方案


在 C:\Users\\AppData\Local\Android\sdk\build-tools 检查最新构建工具的版本并在 appFolder\platforms\android\project.properties 中使用:

cordova.system.library.2=com.android.support:support-v4:<your build tools version>


推荐阅读