当我跑
离子cordova构建android –prod
它显示以下错误:
ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In 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 FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In 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中,我clikc’Build’按钮,它显示:
Error:In 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:+
和
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