Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play-services-measurement-base version miss match #1066

Open
daithi-coombes opened this issue May 15, 2019 · 14 comments

Comments

Projects
None yet
10 participants
@daithi-coombes
Copy link

commented May 15, 2019

Describe the bug
Constistent version miss matches with com.google.android.gms:play-services-measurement-base, using quasar and cordova.

To Reproduce
Steps to reproduce the behavior:

  1. Install plugin
  2. Run cordova (cordova run)

Expected behavior
No google version miss matching.

Screenshots
If applicable, add screenshots to help explain your problem.

Console Logs

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.

Plugin Version
Run cordova plugin list to find out what version of cordova-plugin-firebase you are running with

cordova-plugin-extension 1.5.4 "Cordova Plugin Extension"
cordova-plugin-whitelist 1.3.3 "Whitelist"

Desktop (please complete the following information):

  • OS: Debian 9
  • Browser all
  • Version stretch

Smartphone (please complete the following information):

  • n/a

Additional context
If I follow instructions and add the other two plugins, then I get the same error.

@hjfigueira

This comment has been minimized.

Copy link

commented May 15, 2019

+1

5 similar comments
@gregmille

This comment has been minimized.

Copy link

commented May 15, 2019

+1

@DrCorduroy

This comment has been minimized.

Copy link

commented May 15, 2019

+1

@yukinokaze

This comment has been minimized.

Copy link

commented May 16, 2019

+1

@sthurian

This comment has been minimized.

Copy link

commented May 17, 2019

+1

@TravisVincent

This comment has been minimized.

Copy link

commented May 17, 2019

+1

@Growiel

This comment has been minimized.

Copy link

commented May 17, 2019

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"
@TravisVincent

This comment has been minimized.

Copy link

commented May 17, 2019

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"
@daithi-coombes

This comment has been minimized.

Copy link
Author

commented May 17, 2019

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 ;)

@daithi-coombes

This comment has been minimized.

Copy link
Author

commented May 17, 2019

@TravisVincent I was same. Posted cordova plugin list from wrong terminal. Have updated OP now.

@bayanAbuawad

This comment has been minimized.

Copy link

commented May 17, 2019

@Virendrabaskar

This comment has been minimized.

Copy link

commented May 17, 2019

Facing the same problem

@daithi-coombes

This comment has been minimized.

Copy link
Author

commented May 17, 2019

@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'
@daithi-coombes

This comment has been minimized.

Copy link
Author

commented May 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.