gpt4 book ai didi

android - ionic 错误 : In FontFamilyFont, 无法找到属性 android:fontVariationSettings

转载 作者:IT老高 更新时间:2023-10-28 22:14:21 25 4
gpt4 key购买 nike

当我运行时

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 中,我单击“构建”按钮,它显示:

    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

我不知道如何修复它,请告诉我修复步骤的详细信息。

最佳答案

解决这个问题:

you_app_folder/plugin and look for plugin.xml in all the plugins

转到您的插件文件夹,在该目录中搜索:

com.android.support:support-v4:+

com.android.support:support-v4:24.1.1+

com.android.support:appcompat-v7:28.0.0

用 : 改变它:

com.android.support:support-v4:27.1.0

com.android.support:appcompat-v7:27.1.1

然后

另外,我执行了

ionic cordova platform remove android 

ionic cordova platform add android

关于android - ionic 错误 : In <declare-styleable> FontFamilyFont, 无法找到属性 android:fontVariationSettings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49186095/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com