报错信息:
* What went wrong:
Execution failed for task ':thumbnails:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
C:\Users\hackerpl\.gradle\caches\transforms-2\files-2.1\2cfc6de18491d78868ffdd6cc499684d\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\hackerpl\.gradle\caches\transforms-2\files-2.1\2cfc6de18491d78868ffdd6cc499684d\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.
有效解决方案:
注意这一行:Execution failed for task ':thumbnails:verifyReleaseResources'.
很明显,是我的thumbnails
插件出问题了,再结合网上看到的,修改thumbnails
插件的build.gradle
文件为sdk28+版本即可