我更新了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:Usersaliya.gradlecachestransforms-3d890e529057a1628855ad6caa6153835transformedjetified-play-services-basement-18.1.0.
> C:Usersaliya.gradlecachestransforms-3d890e529057a1628855ad6caa6153835transformedjetified-play-services-basement-18.1.0AndroidManifest.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:Usersaliya.gradlecachestransforms-3d890e529057a1628855ad6caa6153835transformedjetified-play-services-basement-18.1.0.
> C:Usersaliya.gradlecachestransforms-3d890e529057a1628855ad6caa6153835transformedjetified-play-services-basement-18.1.0AndroidManifest.xml
有谁能帮帮我吗
最后,我已经解决了这个问题,通过清理扑动项目,去C:Usersuser_name.gradlecaches
和删除这个文件夹中的所有东西,然后开始构建我的应用程序。
谢谢我:)