首页 > 解决方案 > 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.

为此,我有一个建议提到compileSdkVersionin 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" />

标签: androidcordova

解决方案


推荐阅读