Flutter Build apk 错误
Posted ego
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter Build apk 错误相关的知识,希望对你有一定的参考价值。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:shared_preferences:verifyReleaseResources‘.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
D:android.gradlecaches ransforms-2files-2.1 a271e99b6771ad4a84318244d532fb7core-1.0.0
esvaluesvalues.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
D:android.gradlecaches ransforms-2files-2.1 a271e99b6771ad4a84318244d532fb7core-1.0.0 esvaluesvalues.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
注意红字部分,这是第三方插件。
错误原因是没有用最新版本,把shared_preferences插件更新到最新版本即可。
以上是关于Flutter Build apk 错误的主要内容,如果未能解决你的问题,请参考以下文章