Flutter app build failed with exception

595 views
Skip to first unread message

Adarsh Balachandran

unread,
Jun 25, 2020, 7:57:03 AM6/25/20
to Flutter Development (flutter-dev)
When trying to build apk.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_android: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\HP\.gradle\caches\transforms-2\files-2.1\25f737908970f0e5f2feb2f6dabea9da\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.

     C:\Users\HP\.gradle\caches\transforms-2\files-2.1\25f737908970f0e5f2feb2f6dabea9da\core-1.1.0\res\values\values.xml:142:5-173: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 9m 4s



Running Gradle task 'assembleRelease'...                          546.2s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin android_alarm_manager...
Running Gradle task 'assembleAarRelease'...                        68.0s
√ Built build\app\outputs\repo.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...                     
The plugin cloud_firestore could not be built due to the issue above.
Process finished with exit code 1
Reply all
Reply to author
Forward
0 new messages