You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a recent Flutter update my app would not build. Each time I try I get this error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkProdDebugAarMetadata'.
> Could not resolve all files for configuration ':app:prodDebugRuntimeClasspath'.
> Failed to transform play-services-measurement-22.0.1.aar (com.google.android.gms:play-services-measurement:22.0.1) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
> Could not find play-services-measurement-22.0.1.aar (com.google.android.gms:play-services-measurement:22.0.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement/22.0.1/play-services-measurement-22.0.1.aar
> Failed to transform play-services-measurement-impl-22.0.1.aar (com.google.android.gms:play-services-measurement-impl:22.0.1) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
> Could not find play-services-measurement-impl-22.0.1.aar (com.google.android.gms:play-services-measurement-impl:22.0.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-impl/22.0.1/play-services-measurement-impl-22.0.1.aar
> Failed to transform play-services-measurement-impl-22.0.1.aar (com.google.android.gms:play-services-measurement-impl:22.0.1) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
> Could not find play-services-measurement-impl-22.0.1.aar (com.google.android.gms:play-services-measurement-impl:22.0.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-measurement-impl/22.0.1/play-services-measurement-impl-22.0.1.aar
* 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 46s
Error: Gradle task assembleProdDebug failed with exit code 1
I've searched online but I can't find any solutions.
It is worth mentioning that I have followed the steps in this article to migrate my app to the new Flutter Gradle plugin approach.
Flutter doctor for reference
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22621.3737], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.32)
X The current Visual Studio installation is incomplete.
Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.
[√] Android Studio (version 2023.1)
[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
[√] VS Code (version 1.89.1)
[√] Connected device (4 available)
[√] Network resources
! Doctor found issues in 2 categories.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After a recent Flutter update my app would not build. Each time I try I get this error
I've searched online but I can't find any solutions.
It is worth mentioning that I have followed the steps in this article to migrate my app to the new Flutter Gradle plugin approach.
Flutter doctor for reference
Beta Was this translation helpful? Give feedback.
All reactions