Open daithi-coombes opened 5 years ago
+1
+1
+1
+1
+1
+1
Getting the same issue right after installing this plugin:
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
but in my case, Firebase is the ONLY module I have installed:
cordova plugin list
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
I got a solution that worked for me:
Open up build.gradle (app module)
And find dependencies. Replace the versions (that are most likely stated as "+") with:
compile "com.google.android.gms:play-services-tagmanager:16+"
compile "com.google.firebase:firebase-core:16.0.8"
compile "com.google.firebase:firebase-messaging:17.5.0"
compile "com.google.firebase:firebase-config:16.4.1"
compile "com.google.firebase:firebase-perf:16.2.4"
yes I had tried that from an issue in 2017 I found, but still the same result. Change there could'be been dead code in the cordova build though, so will recreate and test later ;)
@TravisVincent I was same. Posted cordova plugin list
from wrong terminal. Have updated OP now.
I had the same problem and this solution saved my day: https://stackoverflow.com/questions/56014935/problem-with-play-services-measurement-base-on-ionic
Facing the same problem
@TravisVincent no joy, still getting:
Failed to capture fingerprint of input files for task ':app:preReleaseBuild' property 'compileManifests' during up-to-date check.
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]
], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
The cordova-plugin-firebase
is resetting those versions back to +
. Tried uninstalling the plugin but now it gives me:
$ cordova plugin remove cordova-plugin-firebase
Uninstalling cordova-plugin-firebase from android
Error during processing of action! Attempting to revert...
Uh oh!
ENOENT: no such file or directory, open '../quasar/src-cordova/platforms/android/app/src/main/AndroidManifest.xml'
seems I'm not only one that can't remove cordova-plugin-firebase
: https://forum.ionicframework.com/t/cant-remove-firebase-plugin-from-project/132645
@daithi-coombes I was facing the same issue. I had to remove the platform and then the plugin: ionic cordova platform rm android ionic cordova plugin rm cordova-plugin-firebase and then add the platform again ionic cordova platform add android
@daithi-coombes You can also try to change the plugin.xml for the plugin and set the versions to:
com.google.android.gms:play-services-tagmanager:16+
com.google.firebase:firebase-core:16.0.8
com.google.firebase:firebase-messaging:17.5.0
com.google.firebase:firebase-config:16.4.1
com.google.firebase:firebase-perf:16.2.4
I agree with @TravisVincent you do need to edit the plugins.xml otherwise the build.gradle will get overwritten over and over again.
So here is what I did step by step:
remove these directories (after a fresh install not necessary) platforms node-modules plugins
then the following steps
`
@outspokenmagazine Don't forget that the --save does overwrite other custom made changes.
What i did was:
Overall a simple solution until the problem is fixed
With this Pull Request build is getting successful https://github.com/arnesson/cordova-plugin-firebase/pull/1034
I had this working from this problem a month ago. The fix was to set the versions in the project.properties.
Have to do this any time I remove and add android.
My values are.
cordova.system.library.2=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.3=com.google.firebase:firebase-core:16.0.8
cordova.system.library.4=com.google.firebase:firebase-messaging:17.5.0
cordova.system.library.5=com.google.firebase:firebase-config:16.4.1
cordova.system.library.6=com.google.firebase:firebase-perf:16.2.4
cordova.system.library.7=com.android.support:support-v4:24.1.1+
But today I'm getting an error in building.
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.1.1,17.1.1]], but resolves to 19.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
I assume I need to update things again. To what?
I completely gave up on firebase. So happy I did now, no vendor lock-in :P
Here's how i resolved mine:
<framework src="com.google.firebase:firebase-messaging:17.+" />
<framework src="com.google.firebase:firebase-config:16.+" />
<framework src="com.google.firebase:firebase-perf:16.+" />`
Run & Build again
Describe the bug Constistent version miss matches with
com.google.android.gms:play-services-measurement-base
, usingquasar
andcordova
.To Reproduce Steps to reproduce the behavior:
Expected behavior No google version miss matching.
Screenshots If applicable, add screenshots to help explain your problem.
Console Logs
Plugin Version Run
cordova plugin list
to find out what version of cordova-plugin-firebase you are running withDesktop (please complete the following information):
Smartphone (please complete the following information):
Additional context If I follow instructions and add the other two plugins, then I get the same error.