FAILURE: Build failed wit
h an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
(node:19948) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
已经试过remove android add android的操作,还有也更新了Android SDK Build-Tools,都不行
问题补充:为了其他人能找到答案,补充完整问题描述
ionic cordova build android 报错
AAPT: error: resource android:attr/fontVariationSettings not found
AAPT: error: resource android:attr/ttcIndex not found.
Execution failed for task ':processDebugResources'.>Failed to execute aapt
DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code
找到问题的解决办法了 链接描述
该问题的主要描述应该是ionic cordova build android 报

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
这两种错误
附上解决办法: