Hi,
I am building an app which uses FCM messaging and admob . I am facing below issue
Dependency failing: com.google.android.gms:play-services-clearcut:11.0.4 -> com.google.android.gms:play-services-tasks@[
11.0.4], but play-services-tasks version was 17.0.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
– Project ‘app’ depends onto com.google.android.gms:play-services-ads@11.0.4
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@11.0.4
– Project ‘app’ depends onto com.google.android.gms:play-services-clearcut@11.0.4
– Project ‘app’ depends onto com.google.android.gms:play-services-tasks@17.0.0
– Project ‘app’ depends onto com.google.android.gms:play-services-base@17.0.0
– Project ‘app’ depends onto com.google.firebase:firebase-common@18.0.0
– Project ‘app’ depends onto com.google.android.gms:play-services-safetynet@11.0.4
– Project ‘app’ depends onto com.google.firebase:firebase-iid-interop@17.0.0
– Project ‘app’ depends onto com.google.firebase:firebase-iid@19.0.0
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@19.0.0
– Project ‘app’ depends onto com.google.android.gms:play-services-base@11.0.4
For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding “googleServices { disableVersionCheck = false }” to your b
uild.gradle file.
My Project.properties
target=android-28
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=androidx.annotation:annotation:1.0.0
cordova.system.library.2=com.google.firebase:firebase-messaging:11.0.4
cordova.gradle.include.1=cordova-plugin-fcm-with-dependecy-updated/disease-FCMPlugin.gradle
cordova.gradle.include.2=cordova-plugin-badge/disease-badge.gradle
cordova.system.library.3=androidx.legacy:legacy-support-v4:1.0.0
cordova.gradle.include.3=cordova-plugin-local-notification/disease-localnotification.gradle
cordova.system.library.4=androidx.legacy:legacy-support-v4:1.0.0
cordova.system.library.5=com.google.android.gms:play-services-base:11.0.4
cordova.system.library.6=com.google.android.gms:play-services-ads:11.0.4
I have updated firebase-messaging from 19.0.0 to 11.0.4
Plugin.xml for FCM
I have updated 19.0.0 to 11.0.4