Cordova-plugin-firebase: play-services-mesure-base 17.1.0 vs 17.0.0

Créé le 26 août 2019  ·  25Commentaires  ·  Source: arnesson/cordova-plugin-firebase

Describe the bug Décrivez le bogue
After installing cordova-plugin-firebase, I am able to cordova run ios --device but I am not able to cordova run android --device . Après avoir installé cordova-plugin-firebase, je peux cordova run ios --device mais je ne peux pas cordova run android --device . When I do so, I get the following error: Lorsque je le fais, j'obtiens l'erreur suivante :

The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.1.0,17.1.0]], but resolves to 17.1.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

To Reproduce Reproduire
Steps to reproduce the behavior: Étapes pour reproduire le comportement :

  1. cordova plugin add --save cordova-plugin-firebase plugin cordova ajouter --save cordova-plugin-firebase
  2. cordova run android --device cordova exécuter android --device

Expected behavior Comportement attendu
I would hope that this plugin would work for both android and ios, but it seems like it is failing for cordova-android version 8.0.0. J'espère que ce plugin fonctionnera à la fois pour Android et iOS, mais il semble qu'il échoue pour la version cordova-android 8.0.0.

Plugin Version Version du plug-in

"dependencies": {
    "android": "0.0.8",
    "cordova-android": "^8.0.0",
    "cordova-browser": "^6.0.0",
    "cordova-ios": "^5.0.1",
    "cordova-plugin-firebase": "2.0.5",
    "cordova-plugin-inappbrowser": "^3.1.0",
    "cordova-plugin-safariviewcontroller": "^1.6.0",
    "cordova-plugin-splashscreen": "^5.0.3",
    "cordova-plugin-statusbar": "^2.4.3",
    "cordova-plugin-whitelist": "1",
    "phonegap-plugin-barcodescanner": "^8.1.0"
  }

Additional context Contexte supplémentaire
I was able to resolve this issue and get it to work by following this solution: J'ai pu résoudre ce problème et le faire fonctionner en suivant cette solution:
https://stackoverflow.com/questions/56654226/ionic-cordova-app-stopped-compiling-after-googles-june-17th-firebase-sdk-update https://stackoverflow.com/questions/56654226/ionic-cordova-app-stopped-compiling-after-googles-june-17th-firebase-sdk-update

As mentioned by @dpa99c I did the following: Comme mentionné par @dpa99c , j'ai fait ce qui suit :

cordova platform rm android
cordova plugin rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter
cordova platform add android

But after doing so, I was not able to get this to work in iOS. Mais après cela, je n'ai pas pu faire fonctionner cela dans iOS. Is there a plan to resolve this issue for cordova-android version 8.0.0? Existe-t-il un plan pour résoudre ce problème pour la version 8.0.0 de cordova-android ?

en

Commentaire le plus utile

I'm commenting on this, because it was the first place I looked for this error and I may have found the answer on this thread: Je commente cela, car c'était le premier endroit où j'ai cherché cette erreur et j'ai peut-être trouvé la réponse sur ce fil:
https://forum.ionicframework.com/t/android-build-falid-the-library-com-google-android-gms-play-services-measurement-base-is-being-requested-by-various-other-libraries/163390/21 https://forum.ionicframework.com/t/android-build-falid-the-library-com-google-android-gms-play-services-measurement-base-is-being-requested-by-various-other- bibliothèques/163390/21

which refers to another issue: qui renvoie à un autre problème :
https://github.com/arnesson/cordova-plugin-firebase/issues/1057 https://github.com/arnesson/cordova-plugin-firebase/issues/1057

Basically the plugin cordova-plugin-firebase won't work, so it has to be removed, and then instead: Fondamentalement, le plugin cordova-plugin-firebase ne fonctionnera pas, il doit donc être supprimé, puis à la place :
ionic cordova plugin add [email protected] --save

en

Tous les 25 commentaires

Je suis confronté au même problème

en

Face au même problème également

en

Avoir le même problème

en

For those still suffering from this, I recommend using a fork of this repo called cordova-plugin-firebasex It's been working great for me. Pour ceux qui en souffrent encore, je recommande d'utiliser un fork de ce référentiel appelé cordova-plugin-firebasex Cela a très bien fonctionné pour moi.

Be sure to read the instructions on that page, since there are several changes that need to be made to your app compatible. Assurez-vous de lire les instructions sur cette page, car plusieurs modifications doivent être apportées à votre application compatible.

en

I am also facing the issue of version conflict in my environment- In android platform Je suis également confronté au problème de conflit de version dans mon environnement - sur la plate-forme Android
Below is my environment. Ci-dessous mon environnement.
global packages: forfaits globaux :

@ionic/cli-utils : 1.2.0
Cordova CLI      : 8.1.2 ([email protected])
Ionic CLI        : 3.2.0

local packages: forfaits locaux :

@ionic/app-scripts        : 3.2.3
@ionic/cli-plugin-cordova : 1.4.1
Cordova Platforms         : android 7.1.4
Ionic Framework           : ionic-angular 3.9.2

System: Système:

Node       : v10.13.0
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

Please help!! Aidez-moi s'il vous plaît !

None of the option is working Aucune des options ne fonctionne

en

J'ai le même problème

en

J'ai la même erreur, que quelqu'un nous aide.

en

I still recommend the newer cordova-plugin-firebasex that I mention above. Je recommande toujours le nouveau cordova-plugin-firebasex que je mentionne ci-dessus. You should also combine this with the cordova-plugin-androidx-adapter to handle these recent library differences. Vous devez également combiner ceci avec le cordova-plugin-androidx-adapter pour gérer ces différences récentes de bibliothèque.

EDIT: You should also install the cordova-plugin-androidx plugin (as recommend in the cordova-plugin-androidx-adapter documentation) EDIT: Vous devez également installer le plugin cordova-plugin-androidx (comme recommandé dans la documentation cordova-plugin-androidx-adapter)

After using these plugins, my projects no longer suffer from the issue mentioned in this thread. Après avoir utilisé ces plugins, mes projets ne souffrent plus du problème mentionné dans ce fil.

Be sure to read the documentation on these plugins! Assurez-vous de lire la documentation sur ces plugins!

en

I got this message above: J'ai ce message ci-dessus :

cordova-plugin-androidx-adapter: Processed 8 Java source files in 192ms cordova-plugin-androidx-adapter : 8 fichiers source Java traités en 192 ms
(config.widget.plugin || []).forEach is not a function (config.widget.plugin || []).forEach n'est pas une fonction

en

same issue here. même problème ici.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. Échec de la capture de l'empreinte des fichiers d'entrée pour la tâche ': app:preDebugBuild ' propriété 'compileManifests' lors de la vérification à jour.

The library com.google.android. La bibliothèque com.google.android. gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.2.1,17.2.1]], but resolves to 17.2.1. gms:play-services-measurement-base est demandé par diverses autres bibliothèques à [[17.0.0,17.0.0], [17.2.1,17.2.1]], mais se résout en 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. Désactivez le plugin et vérifiez votre arborescence de dépendances en utilisant ./gradlew : app:dependencies.

en

même problème merci de me conseiller

en

Any update on this? Une mise à jour pour ceci? I have the same problem J'ai le même problème

en

x2

ar

Comment est-ce TOUJOURS un problème ? !

en

same issue here. même problème ici.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. Échec de la capture de l'empreinte des fichiers d'entrée pour la tâche ': app:preDebugBuild ' propriété 'compileManifests' lors de la vérification à jour.

The library com.google.android. La bibliothèque com.google.android. gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.2.1,17.2.1]], but resolves to 17.2.1. gms:play-services-measurement-base est demandé par diverses autres bibliothèques à [[17.0.0,17.0.0], [17.2.1,17.2.1]], mais se résout en 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. Désactivez le plugin et vérifiez votre arborescence de dépendances en utilisant ./gradlew : app:dependencies.

Same issue here. Même problème ici. Does anyone found any solution. Est-ce que quelqu'un a trouvé une solution. Please help. S'il vous plaît aider.

en

I'm commenting on this, because it was the first place I looked for this error and I may have found the answer on this thread: Je commente cela, car c'était le premier endroit où j'ai cherché cette erreur et j'ai peut-être trouvé la réponse sur ce fil:
https://forum.ionicframework.com/t/android-build-falid-the-library-com-google-android-gms-play-services-measurement-base-is-being-requested-by-various-other-libraries/163390/21 https://forum.ionicframework.com/t/android-build-falid-the-library-com-google-android-gms-play-services-measurement-base-is-being-requested-by-various-other- bibliothèques/163390/21

which refers to another issue: qui renvoie à un autre problème :
https://github.com/arnesson/cordova-plugin-firebase/issues/1057 https://github.com/arnesson/cordova-plugin-firebase/issues/1057

Basically the plugin cordova-plugin-firebase won't work, so it has to be removed, and then instead: Fondamentalement, le plugin cordova-plugin-firebase ne fonctionnera pas, il doit donc être supprimé, puis à la place :
ionic cordova plugin add [email protected] --save

en

I change the dependencies of the gradle file inside the folder platforms Je change les dépendances du fichier gradle à l'intérieur des plates-formes de dossier

folder > {project}/platforms/android/cordova-plugin-firebase/{projectname}-build.gradle dossier > {project}/platforms/android/cordova-plugin-firebase/{projectname}-build.gradle

// compile 'com.google. // compile 'com.google. firebase:firebase-auth :+' this line firebase:firebase-auth :+' cette ligne
compile 'com.google. compilez 'com.google. firebase:firebase-auth :15.1.0' firebase:firebase-auth :15.1.0'

and in the project properties file inside the folder: et dans le fichier de propriétés du projet à l'intérieur du dossier :

{project}/platforms/android/project.properties {project}/platforms/android/project.properties

cordova.system.library.2=com.google.android. cordova.system.library.2=com.google.android. gms:play-services-tagmanager :15.0.2 gms:play-services-tagmanager :15.0.2
cordova.system.library.3=com.google. cordova.system.library.3=com.google. firebase:firebase-core :15.0.2 firebase:firebase-core :15.0.2
cordova.system.library.4=com.google. cordova.system.library.4=com.google. firebase:firebase-messaging :15.0.2 firebase:firebase-messagerie :15.0.2
cordova.system.library.5=com.google. cordova.system.library.5=com.google. firebase:firebase-config :15.0.2 firebase:firebase-config :15.0.2
cordova.system.library.6=com.google. cordova.system.library.6=com.google. firebase:firebase-perf :15.1.0 firebase:firebase-perf :15.1.0

I downgrade to that version, but just need to found that is required for your projects Je rétrograde à cette version, mais j'ai juste besoin de trouver celle qui est requise pour vos projets

https://mvnrepository.com/artifact/com.google.android.gms/play-services-basement/17.0.0 https://mvnrepository.com/artifact/com.google.android.gms/play-services-basement/17.0.0
in that link you can found what is dans ce lien, vous pouvez trouver ce qui est

en

cordova platform rm android plate-forme cordova rm android
cordova plugin rm cordova-plugin-firebase plugin cordova rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex plugin cordova ajouter cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx plugin cordova ajouter cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter plugin cordova ajouter cordova-plugin-androidx-adapter
cordova platform add android plate-forme cordova ajouter android

Great! Génial!
It worked for me, Cela a fonctionné pour moi,

en

cordova platform rm android plate-forme cordova rm android
cordova plugin rm cordova-plugin-firebase plugin cordova rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex plugin cordova ajouter cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx plugin cordova ajouter cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter plugin cordova ajouter cordova-plugin-androidx-adapter
cordova platform add android plate-forme cordova ajouter android

worked for me travaillé pour moi

en

cordova platform rm android plate-forme cordova rm android
cordova plugin rm cordova-plugin-firebase plugin cordova rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex plugin cordova ajouter cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx plugin cordova ajouter cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter plugin cordova ajouter cordova-plugin-androidx-adapter
cordova platform add android plate-forme cordova ajouter android

worked for me travaillé pour moi

en

@wangdianyh : i tried above plugin but got new error|: @wangdianyh : j'ai essayé le plugin ci-dessus mais j'ai une nouvelle erreur |:

(node:25393) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, copyfile '/Users/apple/Desktop/klino/klino_user/plugins/cordova-plugin-firebasex/src/android/colors.xml' (node:25393) UnhandledPromiseRejectionWarning : Erreur : ENOENT : aucun fichier ou répertoire de ce type, fichier de copie '/Users/apple/Desktop/klino/klino_user/plugins/cordova-plugin-firebasex/src/android/colors.xml'

en

Use the firebasex plugin Utiliser le plug-in firebasex

cordova platform rm android plate-forme cordova rm android
cordova plugin rm cordova-plugin-firebase plugin cordova rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex plugin cordova ajouter cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx plugin cordova ajouter cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter plugin cordova ajouter cordova-plugin-androidx-adapter
cordova platform add android plate-forme cordova ajouter android

And use the Sdk version 21 Et utilisez la version 21 du Sdk

en

Mais je ne sais pas si c'est la solution pour les plates-formes iOS.

en

I faced the same issue and is resolved for my ionic app. J'ai rencontré le même problème et il est résolu pour mon application ionique. I am yet to check for IOS. Je n'ai pas encore vérifié pour IOS. These are my steps. Ce sont mes étapes.
Removed existing: Supprimé existant :
ionic cordova plugin remove cordova-plugin-firebase plugin cordova ionique supprimer cordova-plugin-firebase
npm uninstall @ionic-native/firebase npm désinstaller @ionic-native/firebase
Added new: Nouveau ajouté :
npm install cordova-plugin-firebasex npm installer cordova-plugin-firebasex
npm install cordova-plugin-firebase-core -- save npm installer cordova-plugin-firebase-core - enregistrer
npm install [email protected] npm installer [email protected]
npm install [email protected] npm installer [email protected]

Thanks, Merci,
Ganesh Ganesh

en

cordova platform rm android plate-forme cordova rm android
cordova plugin rm cordova-plugin-firebase plugin cordova rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex plugin cordova ajouter cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx plugin cordova ajouter cordova-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter plugin cordova ajouter cordova-plugin-androidx-adapter
cordova platform add android plate-forme cordova ajouter android

worked for me travaillé pour moi

en
Cette page vous a été utile?
0 / 5 - 0 notes

Questions connexes

jdla1990 picture jdla1990  ·  4Commentaires

merbin2012 picture merbin2012  ·  4Commentaires

michaelreiser picture michaelreiser  ·  5Commentaires

stephan-nordnes-eriksen picture stephan-nordnes-eriksen  ·  5Commentaires

rolinger picture rolinger  ·  3Commentaires