更新后Flutter Build失败并出现异常

问题描述 投票:0回答:1

您能帮我做什么吗:我的应用程序构建得很好,直到我更新了 flutter。现在我遇到了这个错误:

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:\Users\zinch\.gradle\caches\transforms-3\008d07c96b1472e89d5ddc7f299cab36\transformed\core-1.13.1\res\values\values.xml:113:5-122:25: AAPT: error: resource android:attr/lStar not found.

我的项目中没有使用flutter_mailer。

Flutter clean
invalidate cache
没有帮助。

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
flutter build.gradle
1个回答
0
投票

在终端和项目目录中尝试此操作

flutter clean

flutter pub get
© www.soinside.com 2019 - 2024. All rights reserved.