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

Dibuat pada 26 Agu 2019  ·  25Komentar  ·  Sumber: arnesson/cordova-plugin-firebase

Describe the bug Jelaskan bugnya
After installing cordova-plugin-firebase, I am able to cordova run ios --device but I am not able to cordova run android --device . Setelah menginstal cordova-plugin-firebase, saya dapat cordova run ios --device tetapi saya tidak dapat cordova run android --device . When I do so, I get the following error: Ketika saya melakukannya, saya mendapatkan kesalahan berikut:

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 Untuk Mereproduksi
Steps to reproduce the behavior: Langkah-langkah untuk mereproduksi perilaku:

  1. cordova plugin add --save cordova-plugin-firebase plugin cordova tambahkan --save cordova-plugin-firebase
  2. cordova run android --device cordova menjalankan android --device

Expected behavior Perilaku yang diharapkan
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. Saya berharap plugin ini akan berfungsi untuk Android dan ios, tetapi sepertinya gagal untuk cordova-Android versi 8.0.0.

Plugin Version Versi Plugin

"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 konteks tambahan
I was able to resolve this issue and get it to work by following this solution: Saya dapat menyelesaikan masalah ini dan membuatnya berfungsi dengan mengikuti solusi ini:
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: Seperti yang disebutkan oleh @ dpa99c saya melakukan hal berikut:

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. Tetapi setelah melakukannya, saya tidak dapat menjalankannya di iOS. Is there a plan to resolve this issue for cordova-android version 8.0.0? Apakah ada rencana untuk mengatasi masalah ini untuk cordova-Android versi 8.0.0?

en

Komentar yang paling membantu

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: Saya mengomentari ini, karena itu adalah tempat pertama saya mencari kesalahan ini dan saya mungkin telah menemukan jawabannya di utas ini:
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- perpustakaan/163390/21

which refers to another issue: yang mengacu pada masalah lain:
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: Pada dasarnya plugin cordova-plugin-firebase tidak akan berfungsi, jadi itu harus dihapus, dan sebagai gantinya:
ionic cordova plugin add [email protected] --save

en

Semua 25 komentar

Saya Menghadapi masalah yang sama

en

Menghadapi masalah yang sama juga

en

Punya masalah yang sama

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. Bagi mereka yang masih menderita ini, saya sarankan menggunakan garpu repo ini yang disebut cordova-plugin-firebasex Ini bekerja dengan baik untuk saya.

Be sure to read the instructions on that page, since there are several changes that need to be made to your app compatible. Pastikan untuk membaca petunjuk di halaman itu, karena ada beberapa perubahan yang perlu dilakukan agar aplikasi Anda kompatibel.

en

I am also facing the issue of version conflict in my environment- In android platform Saya juga menghadapi masalah konflik versi di lingkungan saya- Di platform android
Below is my environment. Di bawah ini adalah lingkungan saya.
global packages: paket global:

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

local packages: paket lokal:

@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: Sistem:

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

Please help!! Tolong bantu!!

None of the option is working Tidak ada opsi yang berfungsi

en

saya memiliki masalah yang sama

en

Saya memiliki kesalahan yang sama, seseorang membantu kami.

en

I still recommend the newer cordova-plugin-firebasex that I mention above. Saya masih merekomendasikan cordova-plugin-firebasex yang lebih baru yang saya sebutkan di atas. You should also combine this with the cordova-plugin-androidx-adapter to handle these recent library differences. Anda juga harus menggabungkan ini dengan adaptor cordova-plugin-androidx untuk menangani perbedaan pustaka terbaru ini.

EDIT: You should also install the cordova-plugin-androidx plugin (as recommend in the cordova-plugin-androidx-adapter documentation) EDIT: Anda juga harus menginstal plugin cordova-plugin-androidx (seperti yang direkomendasikan dalam dokumentasi cordova-plugin-androidx-adapter)

After using these plugins, my projects no longer suffer from the issue mentioned in this thread. Setelah menggunakan plugin ini, proyek saya tidak lagi mengalami masalah yang disebutkan di utas ini.

Be sure to read the documentation on these plugins! Pastikan untuk membaca dokumentasi tentang plugin ini!

en

I got this message above: Saya mendapat pesan ini di atas:

cordova-plugin-androidx-adapter: Processed 8 Java source files in 192ms cordova-plugin-androidx-adapter: Memproses 8 file sumber Java dalam 192ms
(config.widget.plugin || []).forEach is not a function (config.widget.plugin || []).forEach bukan fungsi

en

same issue here. masalah yang sama di sini.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. Gagal menangkap sidik jari file input untuk tugas ': app:preDebugBuild ' property 'compileManifests' selama pemeriksaan terbaru.

The library com.google.android. Pustaka 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 sedang diminta oleh berbagai perpustakaan lain di [[17.0.0,17.0.0], [17.2.1,17.2.1]], tetapi diselesaikan ke 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. Nonaktifkan plugin dan periksa pohon dependensi Anda menggunakan ./gradlew : app:dependencies.

en

masalah yang sama mohon saran

en

Any update on this? Ada pembaruan tentang ini? I have the same problem Saya memiliki masalah yang sama

en

x2

ar

Bagaimana ini MASIH menjadi masalah?!

en

same issue here. masalah yang sama di sini.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. Gagal menangkap sidik jari file input untuk tugas ': app:preDebugBuild ' property 'compileManifests' selama pemeriksaan terbaru.

The library com.google.android. Pustaka 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 sedang diminta oleh berbagai perpustakaan lain di [[17.0.0,17.0.0], [17.2.1,17.2.1]], tetapi diselesaikan ke 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. Nonaktifkan plugin dan periksa pohon dependensi Anda menggunakan ./gradlew : app:dependencies.

Same issue here. Masalah yang sama di sini. Does anyone found any solution. Apakah ada yang menemukan solusi. Please help. Tolong bantu.

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: Saya mengomentari ini, karena itu adalah tempat pertama saya mencari kesalahan ini dan saya mungkin telah menemukan jawabannya di utas ini:
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- perpustakaan/163390/21

which refers to another issue: yang mengacu pada masalah lain:
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: Pada dasarnya plugin cordova-plugin-firebase tidak akan berfungsi, jadi itu harus dihapus, dan sebagai gantinya:
ionic cordova plugin add [email protected] --save

en

I change the dependencies of the gradle file inside the folder platforms Saya mengubah dependensi file gradle di dalam platform folder

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

// compile 'com.google. // kompilasi 'com.google. firebase:firebase-auth :+' this line firebase:firebase-auth :+' baris ini
compile 'com.google. kompilasi 'com.google. firebase:firebase-auth :15.1.0' firebase:firebase-auth :15.1.0'

and in the project properties file inside the folder: dan di file properti proyek di dalam folder:

{project}/platforms/android/project.properties {project}/platform/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-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 Saya menurunkan versi ke versi itu, tetapi hanya perlu menemukan yang diperlukan untuk proyek Anda

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 di tautan itu Anda dapat menemukan apa itu

en

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

Great! Besar!
It worked for me, Itu berhasil untuk saya,

en

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

worked for me bekerja untuk saya

en

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

worked for me bekerja untuk saya

en

@wangdianyh : i tried above plugin but got new error|: @wangdianyh : saya mencoba plugin di atas tetapi mendapat kesalahan baru|:

(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: tidak ada file atau direktori seperti itu, copyfile '/Users/apple/Desktop/klino/klino_user/plugins/cordova-plugin-firebasex/src/android/colors.xml'

en

Use the firebasex plugin Gunakan plugin firebasex

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

And use the Sdk version 21 Dan gunakan SDK versi 21

en

Tapi saya tidak yakin apakah ini solusi untuk platform iOS.

en

I faced the same issue and is resolved for my ionic app. Saya menghadapi masalah yang sama dan diselesaikan untuk aplikasi ionik saya. I am yet to check for IOS. Saya belum memeriksa IOS. These are my steps. Ini adalah langkah-langkah saya.
Removed existing: Dihapus yang ada:
ionic cordova plugin remove cordova-plugin-firebase plugin ionic cordova menghapus cordova-plugin-firebase
npm uninstall @ionic-native/firebase npm uninstall @ionic-native/firebase
Added new: Ditambahkan baru:
npm install cordova-plugin-firebasex npm instal cordova-plugin-firebasex
npm install cordova-plugin-firebase-core -- save npm install cordova-plugin-firebase-core -- simpan
npm install [email protected] npm instal [email protected]
npm install [email protected] npm instal [email protected]

Thanks, Terima kasih,
Ganesh Ganesha

en

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

worked for me bekerja untuk saya

en
Apakah halaman ini membantu?
0 / 5 - 0 peringkat