在我更新Flutter SDK之后,当我试图构建Flutter Android项目时,我得到了这个错误
我已经更新了所有的firbase软件包到最新版本,但什么也没有发生。我使用这些包:
firebase_core: ^2.9.0
firebase_messaging: ^14.4.0
firebase_crashlytics: ^3.1.0
这就是我看到的错误
Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform play-services-basement-18.1.0.aar (com.google.android.gms:play-services-basement:18.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
> Execution failed for AarResourcesCompilerTransform: C:\Users\aliya\.gradle\caches\transforms-3\d890e529057a1628855ad6caa6153835\transformed\jetified-play-services-basement-18.1.0.
> C:\Users\aliya\.gradle\caches\transforms-3\d890e529057a1628855ad6caa6153835\transformed\jetified-play-services-basement-18.1.0\AndroidManifest.xml
> Failed to transform play-services-basement-18.1.0.aar (com.google.android.gms:play-services-basement:18.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
> Execution failed for AarResourcesCompilerTransform: C:\Users\aliya\.gradle\caches\transforms-3\d890e529057a1628855ad6caa6153835\transformed\jetified-play-services-basement-18.1.0.
> C:\Users\aliya\.gradle\caches\transforms-3\d890e529057a1628855ad6caa6153835\transformed\jetified-play-services-basement-18.1.0\AndroidManifest.xml
请问谁能帮帮我
1条答案
按热度按时间js81xvg61#
最后,我通过清理flutter项目并转到
C:\Users\user_name\.gradle\caches
并删除此文件夹中的所有内容来解决这个问题,然后开始构建我的应用程序。Thanks for me:)