android - Cordova 构建错误 - 无法找到属性 android :font

标签 android cordova build

我正在使用 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

最佳答案

在 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>

关于android - Cordova 构建错误 - 无法找到属性 android :font,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50638804/

相关文章:

java - 一些应用程序如何在 Android 上跟踪自己的卸载

java - 如何在单击按钮时暂停 android 中的 Httpurl 连接

android - 无法在 Phonegap 中使用自定义字体

jakarta-ee - Gradle:找不到方法providedCompile()

javascript - 编译失败: Cannot find file './containers/App/App' in './src'

c# - Unity Error building Player 因为脚本有编译器错误

android - 如何修复 org.threeten.bp.format.DateTimeParseException?

android - 使用 createPendingResult 从服务回调

ios - 在 Cordova 项目中没有收到解析推送通知

cordova - Visual Studio 2015 Cordova Ionic 2 不会在构建时更新 html 文件