1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Could not resolve com.google.gms:google-services:4.4.1

Discussão em 'Mobile' iniciado por Stack, Novembro 6, 2024 às 10:42.

  1. Stack

    Stack Membro Participativo

    I everyone

    Please can you help me to fix it, I'm working with flutter, when run myAP, everthing is ok, but for Firabse, i nedd to add Certificate imprint

    from myApp\android in a terminal, I try ./gradlew.bat signingReport to get the umprintt

    ./gradlew.bat signingReport

    I always get thtis error

    > Could not resolve com.google.gms:google-services:4.4.1.
    Required by:
    unspecified:unspecified:unspecified > com.google.gms.google-services:com.google.gms.google-services.gradle.plugin:4.4.1
    > No matching variant of com.google.gms:google-services:4.4.1 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but:
    - Variant 'apiElements' capability com.google.gms:google-services:4.4.1 declares a library, packaged as a jar, and its dependencies declared externally:
    - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
    - Other compatible attribute:
    - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
    - Variant 'javadocElements' capability com.google.gms:google-services:4.4.1 declares a runtime of a component, and its dependencies declared externally:
    - Incompatible because this component declares documentation and the consumer needed a library
    - Other compatible attributes:
    - Doesn't say anything about its target Java version (required compatibility with Java 8)
    - Doesn't say anything about its elements (required them packaged as a jar)
    - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
    - Variant 'runtimeElements' capability com.google.gms:google-services:4.4.1 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
    - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
    - Other compatible attribute:
    - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
    - Variant 'sourcesElements' capability com.google.gms:google-services:4.4.1 declares a runtime of a component, and its dependencies declared externally:
    - Incompatible because this component declares documentation and the consumer needed a library
    - Other compatible attributes:
    - Doesn't say anything about its target Java version (required compatibility with Java 8)
    - Doesn't say anything about its elements (required them packaged as a jar)
    - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')



    thi is my setting gradle

    plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "7.3.0" apply false
    // START: FlutterFire Configuration
    id "com.google.gms.google-services" version "4.4.1" apply false
    // END: FlutterFire Configuration
    id "org.jetbrains.kotlin.android" version "1.8.0" apply false
    }


    my gradle-wrapper.propêrties

    distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip



    my flutter version

    [​IMG]

    Continue reading...

Compartilhe esta Página