FAILURE: Build failed with an exception. * What went wrong: Execution failed for task

After upgrading to flutter 1.12, try flutter build apk --release build out a package apk

However, it reported the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sms:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a9c96bd680f706d3c9af22cf8b972513\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.

     C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a9c96bd680f706d3c9af22cf8b972513\core-1.0.0\res\values\values.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

BUILD FAILED in 1m 52s

Looks very scary, however, to find the key factors like, look at this line

Execution failed for task ':sms:verifyReleaseResources'.

It seems likely, and this "sms" about

The automatic sms 18 September there will be no further updates over

Attached link: https://pub.dev/packages/sms/versions

Remove dependence sms directly replace the corresponding functions with their plug-ins. . .

problem solved. . .

 

 

Published 371 original articles · won praise 32 · views 240 000 +

Guess you like

Origin blog.csdn.net/perfectnihil/article/details/103558672