invertase / flutterfire_cli

A CLI to help with using FlutterFire in your Flutter applications.
Apache License 2.0
171 stars 47 forks source link

[bug]: Build fails with: Execution failed for task ':app:mapDebugSourceSetPaths' #199

Closed dumabg closed 1 year ago

dumabg commented 1 year ago

Is there an existing issue for this?

CLI Version

0.2.7

Firebase Tools version

12.4.7

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.10.6, on KDE neon 5.27 6.2.0-31-generic, locale es_ES.UTF-8) • Flutter version 3.10.6 on channel stable at /opt/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f468f3366c (hace 8 semanas), 2023-07-12 15:19:05 -0700 • Engine revision cdbeda788a • Dart version 3.0.6 • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /opt/android-sdk/ • Platform android-34, build-tools 34.0.0 • Java binary at: /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted.

[✓] Chrome - develop for the web • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop • Ubuntu clang version 14.0.0-1ubuntu1.1 • cmake version 3.22.1 • ninja version 1.10.1 • pkg-config version 0.29.2

[✓] Android Studio • Android Studio at /opt/android-studio • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.81.1) • VS Code at /usr/share/code • Flutter extension version 3.70.0

[✓] Connected device (3 available) • SM A225M (mobile) • RX8RB01MDJZ • android-arm64 • Android 13 (API 33) • Linux (desktop) • linux • linux-x64 • KDE neon 5.27 6.2.0-31-generic • Chrome (web) • chrome • web-javascript • Google Chrome 116.0.5845.140

[✓] Network resources • All expected network resources are available.

Description

When compile, gives the error:

Execution failed for task ':app:mapDebugSourceSetPaths'. Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths' Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'. Querying the mapped value of provider(interface java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported

Steps to reproduce

Compile

Expected behavior

Don't appear the error

Screenshots

No response

Additional context and comments

Resolution

flutterfire configure adds this lines in build.gradle:

// START: FlutterFire Configuration classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1' // END: FlutterFire Configuration

'com.google.gms:google-services:4.3.10' is the cause of this bug.

Change to 'com.google.gms:google-services:4.3.15' and it works.