首页 > 解决方案 > flutter build apk --split-per-abi 失败

问题描述

您好,当我运行 flutter build apk --split-per-abi 时出现此错误,我无法生成我的 apk。你能帮我吗。先感谢您。

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':moneytextformfield:verifyReleaseResources'
> A failure occurred while executing
com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\bahal\.gradle\caches\transforms-2\files- 
2.1\c82bf40584b9a53c31dba07a8a48f301\core-1.1.0\res\values\values.xml:142:5- 
173:25: AAPT: erro
r: resource android:attr/fontVariationSettings not found.
C:\Users\

----------

bahal\.gradle\caches\transforms-2\files- 
2.1\c82bf40584b9a53c31dba07a8a48f301\core-1.1.0\res\values\values.xml:142:5- 
173:25: AAPT: erro
r: resource android:attr/ttcIndex not found.

标签: androidflutterapk

解决方案


我通过删除money textformfield 依赖项解决了这个问题。现在我使用简单的 textFormField


推荐阅读