当我跑步时
ionic 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.
在 Android Studio 中,我单击“构建”按钮,它显示:
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 并在所有插件中查找plugin.xml
转到您的插件文件夹,在该目录中搜索:
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
then
另外,我执行了
ionic cordova platform remove android
and
ionic cordova platform add android
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)