android - 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
解决方案
在 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>
推荐阅读
- ios - 如何在单个tableview上做api数据json.file数据
- ios - iOS App 中的 AcquireTokenSilentAsync 不返回令牌
- python - 使用 google sdk 和 python flask 开发 google 操作
- lambda - 在 Racket 中使用纯 lambda 演算和 Church 数字实现斐波那契数列
- node.js - 如何在数据库sequelize中只存储n条记录?
- integer - 使用缓冲区溢出修改整数
- android - 如何保存使用改造收到的响应?
- wordpress - 如何通过 React Native 将图像发布到 WordPress
- excel - 在选定范围内修剪、复制(插入)、连接
- google-cloud-platform - Azure AD B2C 不显示自定义注册页面