Can you please help me what to do: my app built great, until I updated flutter. Now I’ve got this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_mailer:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:C:Userszinch.gradlecachestransforms-308d07c96b1472e89d5ddc7f299cab36transformedcore-1.13.1resvaluesvalues.xml:113:5-122:25: AAPT: error: resource android:attr/lStar not found.
I don’t use flutter_mailer in my project.
Flutter clean
and invalidate cache
didn’t help.
Output of flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [Version 10.0.19045.4780], locale ru-RU)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.1)
[√] Android Studio (version 2023.2)
[√] Android Studio (version 2024.1)
[√] Connected device (4 available)
[√] Network resources
2
Answers
Try this in your terminal and in the project directory
try using "flutter clean" then "flutter pub get" this will resolve the issue.