Hello
This issue started happening today, it seems the firebase-messaging plugin 19.0.1 needs firebase-iid 19.0.1 .. so it needs to be updated
AILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:preReleaseBuild'.
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-messaging:19.0.1 -> com.google.firebase:firebase-iid@[19.0.1], but fire
base-iid version was 20.0.2.
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.firebase:firebase-messaging@19.+
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-perf@18.+
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-core@17.+
-- Project 'app' depends onto com.google.android.gms:play-services-tagmanager@16.+
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-config@18.+
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
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.
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 7s
/Volumes/Work/Projects/Adservio/adservioapp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:preReleaseBuild'.
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-messaging:19.0.1 -> com.google.firebase:firebase-iid@[19.0.1], but fire
base-iid version was 20.0.2.
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.firebase:firebase-messaging@19.+
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-perf@18.+
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-core@17.+
-- Project 'app' depends onto com.google.android.gms:play-services-tagmanager@16.+
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-config@18.+
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
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.
check this link i asked ques in stackoverflow. https://stackoverflow.com/questions/59747916/apache-cordova-build-failed-on-implementing-firebase-dependency-failing
I found this solution in my project.properties file.
Changing from
cordova.system.library.5=com.google.firebase:firebase-messaging:19.+
To
cordova.system.library.5=com.google.firebase:firebase-messaging:20.1.+
And it works.
Most helpful comment
I found this solution in my project.properties file.
Changing from
cordova.system.library.5=com.google.firebase:firebase-messaging:19.+To
cordova.system.library.5=com.google.firebase:firebase-messaging:20.1.+And it works.