Cordova:某些输入文件使用或覆盖已弃用的API

时间:2018-05-30 10:01:28

标签: android cordova

我已经在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中的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" />

0 个答案:

没有答案