离子错误:在< declare-styleable>中FontFamilyFont,无法找到属性android:fontVariationSettings [英] Ionic ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
本文介绍了离子错误:在< declare-styleable>中FontFamilyFont,无法找到属性android:fontVariationSettings的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我跑步时
ionic cordova构建android --prod
ionic cordova build 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中,我单击构建"按钮,它显示:
and in AndroidStudio, I clikc 'Build' button, it shows:
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
我不知道如何解决它,请告诉我修复步骤的详细信息.
I don't know how to fix it, please tell me the detail of fix steps.
推荐答案
要解决这个问题:
you_app_folder/plugin并在所有插件中查找plugin.xml
you_app_folder/plugin and look for plugin.xml in all the plugins
转到您的插件文件夹,在该目录中搜索:
Go to your plugin folder, search in that directory for :
com.android.support:support-v4:+
OR
com.android.support:support-v4:24.1.1+
OR
com.android.support:appcompat-v7:28.0.0
使用:
com.android.support:support-v4:27.1.0
OR
com.android.support:appcompat-v7:27.1.1
然后
我还执行了
ionic cordova platform remove android
和
ionic cordova platform add android
这篇关于离子错误:在< declare-styleable>中FontFamilyFont,无法找到属性android:fontVariationSettings的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文