当我跑步时
离子cordova构建android --prod
它显示以下错误:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
FAILED
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.
BUILD FAILED
Total time: 9.11 secs
Error: /Users/cqismgis/Desktop/MobileGIS/platforms/android/gradlew: Command failed with exit code 1 Error output:
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
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.
在AndroidStudio中,我在建立&#39; Build&#39;按钮,显示:
Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
Error:Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
我不知道如何修复它,请告诉我修复步骤的详细信息。
答案 0 :(得分:32)
要解决这个问题:
you_app_folder / plugin并在所有插件中查找plugin.xml
转到您的插件文件夹,在该目录中搜索:
com.android.support:support-v4:+
和
com.android.support:support-v4:24.1.1+
更改为:
com.android.support:support-v4:27.1.0
然后
另外,我执行了
ionic cordova platform remove android
和
ionic cordova platform add android