android - Cordova:某些输入文件使用或覆盖已弃用的 API
问题描述
我在 SO 中检查了相同的查询,但对我没有任何帮助。当我尝试运行应用程序时(通过使用cordova run android
)。我收到以下错误
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
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:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
为此,我有一个建议提到compileSdkVersion
in plugin.xml
。根据我提到的这个建议
<uses-sdk android:targetSdkVersion="23" android:minSdkVersion="7"/>
但我再次面临同样的问题。任何人都可以知道是什么问题以及如何解决它
编辑
<!--dependencies-->
<framework src="libs/plugin.gradle" custom="true" type="gradleReference"/>
<framework src="com.android.support:support-v4:23.2.1" />
<framework src="commons-io:commons-io:2.4" />
<framework src="com.google.code.gson:gson:2.3" />
解决方案
推荐阅读
- angular - 如何拦截柏树中的GetById?
- flutter - 无法使用Provider时如何将数据注入类?- 颤振
- python - python:在for循环中创建嵌套列表
- jquery - JQuery 缩放代码不适用于光滑的滑块
- html - 在 CSS 或 SVG 中带边框和剪裁右上角的 Div
- error-handling - VBscript 判断发送邮件失败
- firebase - 如何从 docker 运行 firestore 模拟器并使数据保持不变
- python - Python:不应该 open(False, "rb") 引发异常吗?
- css - 如何在 Laravel 8 中从数据库中获取样式元素
- image - 在 S3 中捕获更改的文件事件?(上传、编辑文件名、删除文件)