Describe the bug Beschreiben Sie den Fehler
After installing cordova-plugin-firebase, I am able to cordova run ios --device
but I am not able to cordova run android --device
. Nach der Installation von cordova-plugin-firebase kann ich cordova run ios --device
aber ich kann cordova run android --device
nicht. When I do so, I get the following error: Wenn ich dies tue, erhalte ich die folgende Fehlermeldung:
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 Fortpflanzen
Steps to reproduce the behavior: Schritte zum Reproduzieren des Verhaltens:
Expected behavior Erwartetes Verhalten
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. Ich würde hoffen, dass dieses Plugin sowohl für Android als auch für iOS funktioniert, aber es scheint, als würde es für Cordova-Android-Version 8.0.0 fehlschlagen.
Plugin Version Plugin-Version
"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 Zusätzlicher Kontext
I was able to resolve this issue and get it to work by following this solution: Ich konnte dieses Problem lösen und es zum Laufen bringen, indem ich dieser Lösung folgte:
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: Wie von @dpa99c erwähnt, habe ich Folgendes getan:
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. Aber danach konnte ich dies nicht in iOS zum Laufen bringen. Is there a plan to resolve this issue for cordova-android version 8.0.0? Gibt es einen Plan, dieses Problem für die Cordova-Android-Version 8.0.0 zu beheben?
enIch stehe vor dem gleichen Problem
enStehe auch vor dem gleichen Problem
enHabe das gleiche Problem
enFor those still suffering from this, I recommend using a fork of this repo called cordova-plugin-firebasex It's been working great for me. Für diejenigen, die immer noch darunter leiden, empfehle ich die Verwendung eines Forks dieses Repos namens cordova-plugin-firebasex . Es hat bei mir hervorragend funktioniert.
Be sure to read the instructions on that page, since there are several changes that need to be made to your app compatible. Lesen Sie unbedingt die Anweisungen auf dieser Seite, da einige Änderungen an Ihrer App-Kompatibilität vorgenommen werden müssen.
enI am also facing the issue of version conflict in my environment- In android platform Ich bin auch mit dem Problem des Versionskonflikts in meiner Umgebung konfrontiert – auf der Android-Plattform
Below is my environment. Unten ist meine Umgebung.
global packages: Globale Pakete:
@ionic/cli-utils : 1.2.0
Cordova CLI : 8.1.2 ([email protected])
Ionic CLI : 3.2.0
local packages: lokale Pakete:
@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: System:
Node : v10.13.0
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
Please help!! Bitte helft!!
None of the option is working Keine der Optionen funktioniert
enIch habe das gleiche Problem
enIch habe den gleichen Fehler, jemand hilft uns.
enI still recommend the newer cordova-plugin-firebasex that I mention above. Ich empfehle immer noch das neuere Cordova-Plugin-Firebasex , das ich oben erwähnt habe. You should also combine this with the cordova-plugin-androidx-adapter to handle these recent library differences. Sie sollten dies auch mit dem cordova-plugin-androidx-adapter kombinieren, um diese jüngsten Bibliotheksunterschiede zu handhaben.
EDIT: You should also install the cordova-plugin-androidx plugin (as recommend in the cordova-plugin-androidx-adapter documentation) BEARBEITEN: Sie sollten auch das Cordova-Plugin-Androidx-Plugin installieren (wie in der Cordova-Plugin-Androidx-Adapter-Dokumentation empfohlen)
After using these plugins, my projects no longer suffer from the issue mentioned in this thread. Nachdem ich diese Plugins verwendet habe, leiden meine Projekte nicht mehr unter dem in diesem Thread erwähnten Problem.
Be sure to read the documentation on these plugins! Lesen Sie unbedingt die Dokumentation zu diesen Plugins!
enI got this message above: Ich habe oben diese Meldung bekommen:
cordova-plugin-androidx-adapter: Processed 8 Java source files in 192ms cordova-plugin-androidx-adapter: Verarbeitete 8 Java-Quelldateien in 192 ms
(config.widget.plugin || []).forEach is not a function (config.widget.plugin || []).forEach ist keine Funktion
same issue here. gleiches Problem hier.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. Fehler beim Erfassen des Fingerabdrucks von Eingabedateien für Aufgabe „: app:preDebugBuild “ Eigenschaft „compileManifests“ während der Aktualitätsprüfung.
enThe library com.google.android. Die Bibliothek 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 wird von verschiedenen anderen Bibliotheken unter [[17.0.0,17.0.0], [17.2.1,17.2.1]] angefordert, löst sich aber in 17.2.1 auf. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. Deaktivieren Sie das Plugin und überprüfen Sie Ihren Abhängigkeitsbaum mit ./gradlew : app:dependencies.
gleiches Problem bitte um Rat
enAny update on this? Gibt es hierzu Neuigkeiten? I have the same problem Ich habe das gleiche Problem
enx2
arWie ist das NOCH ein Problem?!
ensame issue here. gleiches Problem hier.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. Fehler beim Erfassen des Fingerabdrucks von Eingabedateien für Aufgabe „: app:preDebugBuild “ Eigenschaft „compileManifests“ während der Aktualitätsprüfung.The library com.google.android. Die Bibliothek 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 wird von verschiedenen anderen Bibliotheken unter [[17.0.0,17.0.0], [17.2.1,17.2.1]] angefordert, löst sich aber in 17.2.1 auf. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. Deaktivieren Sie das Plugin und überprüfen Sie Ihren Abhängigkeitsbaum mit ./gradlew : app:dependencies.
Same issue here. Dasselbe Problem hier. Does anyone found any solution. Hat jemand eine Lösung gefunden. Please help. Bitte helfen Sie.
enI'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: Ich kommentiere dies, weil es der erste Ort war, an dem ich nach diesem Fehler gesucht habe, und ich habe möglicherweise die Antwort in diesem Thread gefunden:
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- Bibliotheken/163390/21
which refers to another issue: was auf ein anderes Problem verweist:
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: Grundsätzlich funktioniert das Plugin cordova-plugin-firebase nicht, also muss es entfernt werden, und dann stattdessen:
ionic cordova plugin add [email protected] --save
I change the dependencies of the gradle file inside the folder platforms Ich ändere die Abhängigkeiten der Gradle-Datei in den Ordnerplattformen
folder > {project}/platforms/android/cordova-plugin-firebase/{projectname}-build.gradle Ordner > {project}/platforms/android/cordova-plugin-firebase/{projectname}-build.gradle
// compile 'com.google. // kompiliere 'com.google. firebase:firebase-auth :+' this line firebase:firebase-auth :+' diese Zeile
compile 'com.google. kompilieren Sie 'com.google. firebase:firebase-auth :15.1.0' firebase:firebase -auth :15.1.0'
and in the project properties file inside the folder: und in der Projekteigenschaftendatei im Ordner:
{project}/platforms/android/project.properties {Projekt}/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-Kern : 15.0.2
cordova.system.library.4=com.google. cordova.system.library.4=com.google. firebase:firebase-messaging :15.0.2 firebase:firebase -messaging :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 Ich führe ein Downgrade auf diese Version durch, muss aber nur feststellen, dass sie für Ihre Projekte erforderlich ist
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 In diesem Link können Sie finden, was ist
cordova platform rm android Cordova-Plattform rm android
cordova plugin rm cordova-plugin-firebase Cordova-Plugin rm Cordova-Plugin-Firebase
cordova plugin add cordova-plugin-firebasex Cordova-Plug-in Cordova-Plug-in-Firebasex hinzufügen
cordova plugin add cordova-plugin-androidx Cordova-Plug-in Cordova-Plug-in-androidx hinzufügen
cordova plugin add cordova-plugin-androidx-adapter Cordova-Plugin Cordova-Plugin-Androidx-Adapter hinzufügen
cordova platform add android Cordova-Plattform Android hinzufügen
Great! Toll!
It worked for me, Bei mir hat es funktioniert,
cordova platform rm android Cordova-Plattform rm android
cordova plugin rm cordova-plugin-firebase Cordova-Plugin rm Cordova-Plugin-Firebase
cordova plugin add cordova-plugin-firebasex Cordova-Plug-in Cordova-Plug-in-Firebasex hinzufügen
cordova plugin add cordova-plugin-androidx Cordova-Plug-in Cordova-Plug-in-androidx hinzufügen
cordova plugin add cordova-plugin-androidx-adapter Cordova-Plugin Cordova-Plugin-Androidx-Adapter hinzufügen
cordova platform add android Cordova-Plattform Android hinzufügen
worked for me hat bei mir funktioniert
encordova platform rm android Cordova-Plattform rm android
cordova plugin rm cordova-plugin-firebase Cordova-Plugin rm Cordova-Plugin-Firebase
cordova plugin add cordova-plugin-firebasex Cordova-Plug-in Cordova-Plug-in-Firebasex hinzufügen
cordova plugin add cordova-plugin-androidx Cordova-Plug-in Cordova-Plug-in-androidx hinzufügen
cordova plugin add cordova-plugin-androidx-adapter Cordova-Plugin Cordova-Plugin-Androidx-Adapter hinzufügen
cordova platform add android Cordova-Plattform Android hinzufügen
worked for me hat bei mir funktioniert
en@wangdianyh : i tried above plugin but got new error|: @wangdianyh : Ich habe das obige Plugin ausprobiert, aber einen neuen Fehler bekommen |:
en(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: Error: ENOENT: no such file or directory, copyfile '/Users/apple/Desktop/klino/klino_user/plugins/cordova-plugin-firebasex/src/android/colors.xml'
Use the firebasex plugin Verwenden Sie das Firebasex-Plugin
cordova platform rm android Cordova-Plattform rm android
cordova plugin rm cordova-plugin-firebase Cordova-Plugin rm Cordova-Plugin-Firebase
cordova plugin add cordova-plugin-firebasex Cordova-Plug-in Cordova-Plug-in-Firebasex hinzufügen
cordova plugin add cordova-plugin-androidx Cordova-Plug-in Cordova-Plug-in-androidx hinzufügen
cordova plugin add cordova-plugin-androidx-adapter Cordova-Plugin Cordova-Plugin-Androidx-Adapter hinzufügen
cordova platform add android Cordova-Plattform Android hinzufügen
And use the Sdk version 21 Und verwenden Sie die SDK-Version 21
Aber ich bin mir nicht sicher, ob dies die Lösung für die iOS-Plattformen ist.
enI faced the same issue and is resolved for my ionic app. Ich hatte das gleiche Problem und es ist für meine ionische App gelöst. I am yet to check for IOS. Ich muss noch nach iOS suchen. These are my steps. Das sind meine Schritte.
Removed existing: Vorhandenes entfernt:
ionic cordova plugin remove cordova-plugin-firebase ionisches Cordova-Plugin entfernt Cordova-Plugin-Firebase
npm uninstall @ionic-native/firebase npm deinstallieren @ionic-native/firebase
Added new: Neu hinzugefügt:
npm install cordova-plugin-firebasex npm installiere cordova-plugin-firebasex
npm install cordova-plugin-firebase-core -- save npm installiere cordova-plugin-firebase-core – save
npm install [email protected] npm installiere [email protected]
npm install [email protected] npm installiere [email protected]
Thanks, Vielen Dank,
Ganesh Ganesh
cordova platform rm android Cordova-Plattform rm android
cordova plugin rm cordova-plugin-firebase Cordova-Plugin rm Cordova-Plugin-Firebase
cordova plugin add cordova-plugin-firebasex Cordova-Plug-in Cordova-Plug-in-Firebasex hinzufügen
cordova plugin add cordova-plugin-androidx Cordova-Plug-in Cordova-Plug-in-androidx hinzufügen
cordova plugin add cordova-plugin-androidx-adapter Cordova-Plugin Cordova-Plugin-Androidx-Adapter hinzufügen
cordova platform add android Cordova-Plattform Android hinzufügen
worked for me hat bei mir funktioniert
en
Hilfreichster Kommentar
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: Ich kommentiere dies, weil es der erste Ort war, an dem ich nach diesem Fehler gesucht habe, und ich habe möglicherweise die Antwort in diesem Thread gefunden:
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- Bibliotheken/163390/21
which refers to another issue: was auf ein anderes Problem verweist:
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: Grundsätzlich funktioniert das Plugin cordova-plugin-firebase nicht, also muss es entfernt werden, und dann stattdessen:
enionic cordova plugin add [email protected] --save