Cordova-plugin-firebase: قاعدة قياس خدمات اللعب 17.1.0 مقابل 17.0.0

تم إنشاؤها على ٢٦ أغسطس ٢٠١٩  ·  25تعليقات  ·  مصدر: arnesson/cordova-plugin-firebase

Describe the bug صف الخلل
After installing cordova-plugin-firebase, I am able to cordova run ios --device but I am not able to cordova run android --device . بعد تثبيت cordova-plugin-firebase ، يمكنني الحصول على cordova run ios --device لكنني لست قادرًا على cordova run android --device . When I do so, I get the following error: عندما أفعل ذلك ، أتلقى الخطأ التالي:

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 لإعادة إنتاج
Steps to reproduce the behavior: خطوات إعادة إنتاج السلوك:

  1. cordova plugin add --save cordova-plugin-firebase كوردوفا plugin add --save cordova-plugin-firebase
  2. cordova run android --device تشغيل جهاز android - cordova

Expected behavior سلوك متوقع
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. آمل أن يعمل هذا المكون الإضافي مع كل من android و ios ، ولكن يبدو أنه فشل في الإصدار 8.0.0 من كوردوفا-أندرويد.

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 سياق إضافي
I was able to resolve this issue and get it to work by following this 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: كما ذكر من قبل @ dpa99c قمت بما يلي:

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. ولكن بعد القيام بذلك ، لم أتمكن من تشغيل هذا في iOS. Is there a plan to resolve this issue for cordova-android version 8.0.0? هل هناك خطة لحل هذه المشكلة مع الإصدار 8.0.0 من كوردوفا-أندرويد؟

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: أنا أعلق على هذا ، لأنه كان أول مكان بحثت فيه عن هذا الخطأ وربما وجدت الإجابة في هذا الموضوع:
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- المكتبات / 163390/21

which refers to another issue: الذي يشير إلى قضية أخرى:
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: لن يعمل المكون الإضافي cordova-plugin-firebase بشكل أساسي ، لذلك يجب إزالته ، ثم بدلاً من ذلك:
ionic cordova plugin add [email protected] --save

en

ال 25 كومينتر

أواجه نفس المشكلة

en

تواجه نفس المشكلة أيضا

en

لديك نفس المشكلة

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. بالنسبة لأولئك الذين ما زالوا يعانون من هذا ، أوصي باستخدام مفترق من هذا الريبو يسمى cordova-plugin-firebasex لقد كان يعمل بشكل رائع بالنسبة لي.

Be sure to read the instructions on that page, since there are several changes that need to be made to your app compatible. تأكد من قراءة التعليمات الواردة في تلك الصفحة ، نظرًا لوجود العديد من التغييرات التي يجب إجراؤها على تطبيقك المتوافق.

en

I am also facing the issue of version conflict in my environment- In android platform أواجه أيضًا مشكلة تعارض الإصدار في بيئتي - في نظام Android الأساسي
Below is my environment. يوجد أدناه بيئتي.
global packages: الحزم العالمية:

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

local packages: الحزم المحلية:

@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: نظام:

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

Please help!! الرجاء المساعدة !!

None of the option is working لا يعمل أي من الخيار

en

لدي نفس المشكلة

en

لدي نفس الخطأ ، شخص ما يساعدنا.

en

I still recommend the newer cordova-plugin-firebasex that I mention above. ما زلت أوصي بـ cordova-plugin-firebasex الأحدث الذي ذكرته أعلاه. You should also combine this with the cordova-plugin-androidx-adapter to handle these recent library differences. يجب عليك أيضًا دمج هذا مع محول cordova-plugin-androidx-adaptor للتعامل مع هذه الاختلافات الحديثة في المكتبة.

EDIT: You should also install the cordova-plugin-androidx plugin (as recommend in the cordova-plugin-androidx-adapter documentation) تحرير: يجب عليك أيضًا تثبيت المكون الإضافي cordova-plugin-androidx (على النحو الموصى به في وثائق cordova-plugin-androidx-adaptor)

After using these plugins, my projects no longer suffer from the issue mentioned in this thread. بعد استخدام هذه المكونات الإضافية ، لم تعد مشاريعي تعاني من المشكلة المذكورة في هذا الموضوع.

Be sure to read the documentation on these plugins! تأكد من قراءة الوثائق الموجودة على هذه المكونات الإضافية!

en

I got this message above: تلقيت هذه الرسالة أعلاه:

cordova-plugin-androidx-adapter: Processed 8 Java source files in 192ms cordova-plugin-androidx-adaptor: تمت معالجة 8 ملفات مصدر جافا في 192 مللي ثانية
(config.widget.plugin || []).forEach is not a function (config.widget.plugin || []). كل واحدة ليست وظيفة

en

same issue here. نفس المشكلة هنا.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. فشل في التقاط بصمة ملفات الإدخال للمهمة ': app: preDebugBuild ' property 'compileManifests' أثناء التحقق من التحديث.

The library com.google.android. مكتبة 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 -auge-base بواسطة مكتبات أخرى مختلفة في [[17.0.0 ، 17.0.0] ، [17.2.1 ، 17.2.1]] ، لكنها تقرر إلى 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. قم بتعطيل المكون الإضافي وتحقق من شجرة التبعيات باستخدام ./gradlew: app: التبعيّات.

en

نفس المشكلة يرجى تقديم المشورة

en

Any update on this? أي تحديث على هذا؟ I have the same problem لدي نفس المشكلة

en

x2

ar

كيف تظل هذه مشكلة ؟!

en

same issue here. نفس المشكلة هنا.
Failed to capture fingerprint of input files for task ': app:preDebugBuild ' property 'compileManifests' during up-to-date check. فشل في التقاط بصمة ملفات الإدخال للمهمة ': app: preDebugBuild ' property 'compileManifests' أثناء التحقق من التحديث.

The library com.google.android. مكتبة 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 -auge-base بواسطة مكتبات أخرى مختلفة في [[17.0.0 ، 17.0.0] ، [17.2.1 ، 17.2.1]] ، لكنها تقرر إلى 17.2.1. Disable the plugin and check your dependencies tree using ./gradlew : app:dependencies. قم بتعطيل المكون الإضافي وتحقق من شجرة التبعيات باستخدام ./gradlew: app: التبعيّات.

Same issue here. نفس المشكلة هنا. Does anyone found any solution. هل وجد أي شخص أي حل. Please help. الرجاء المساعدة.

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: أنا أعلق على هذا ، لأنه كان أول مكان بحثت فيه عن هذا الخطأ وربما وجدت الإجابة في هذا الموضوع:
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- المكتبات / 163390/21

which refers to another issue: الذي يشير إلى قضية أخرى:
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: لن يعمل المكون الإضافي cordova-plugin-firebase بشكل أساسي ، لذلك يجب إزالته ، ثم بدلاً من ذلك:
ionic cordova plugin add [email protected] --save

en

I change the dependencies of the gradle file inside the folder platforms أقوم بتغيير تبعيات ملف gradle داخل منصات المجلدات

folder > {project}/platforms/android/cordova-plugin-firebase/{projectname}-build.gradle المجلد> {project} / platform / android / cordova-plugin-firebase / {projectname} -build.gradle

// compile 'com.google. // ترجمة 'com.google. firebase:firebase-auth :+' this line firebase: firebase-auth : + 'this line
compile 'com.google. ترجمة 'com.google. firebase:firebase-auth :15.1.0' Firebase: firebase -auth : 15.1.0 '

and in the project properties file inside the folder: وفي ملف خصائص المشروع داخل المجلد:

{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 -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 لقد رجعت إلى هذا الإصدار ، لكنني فقط بحاجة إلى العثور على ما هو مطلوب لمشاريعك

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 في هذا الرابط يمكنك العثور على ما هو

en

cordova platform rm android منصة كوردوفا rm android
cordova plugin rm cordova-plugin-firebase cordova plugin rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex إضافة cordova plugin إلى cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx إضافة كوردوفا plugin-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter إضافة cordova plugin إلى محول cordova-plugin-androidx
cordova platform add android منصة كوردوفا تضيف أندرويد

Great! عظيم!
It worked for me, عملت معي،

en

cordova platform rm android منصة كوردوفا rm android
cordova plugin rm cordova-plugin-firebase cordova plugin rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex إضافة cordova plugin إلى cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx إضافة كوردوفا plugin-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter إضافة cordova plugin إلى محول cordova-plugin-androidx
cordova platform add android منصة كوردوفا تضيف أندرويد

worked for me عملت من أجلي

en

cordova platform rm android منصة كوردوفا rm android
cordova plugin rm cordova-plugin-firebase cordova plugin rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex إضافة cordova plugin إلى cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx إضافة كوردوفا plugin-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter إضافة cordova plugin إلى محول cordova-plugin-androidx
cordova platform add android منصة كوردوفا تضيف أندرويد

worked for me عملت من أجلي

en

@wangdianyh : i tried above plugin but got new error|: wangdianyh : لقد جربت المكوّن الإضافي أعلاه ولكن حصلت على خطأ جديد |:

(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' (العقدة: 25393) UnhandledPromiseRejectionWarning: خطأ: EnOENT: لا يوجد مثل هذا الملف أو الدليل ، copyfile '/Users/apple/Desktop/klino/klino_user/plugins/cordova-plugin-firebasex/src/android/colors.xml'

en

Use the firebasex plugin استخدم المكون الإضافي Firebasex

cordova platform rm android منصة كوردوفا rm android
cordova plugin rm cordova-plugin-firebase cordova plugin rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex إضافة cordova plugin إلى cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx إضافة كوردوفا plugin-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter إضافة cordova plugin إلى محول cordova-plugin-androidx
cordova platform add android منصة كوردوفا تضيف أندرويد

And use the Sdk version 21 واستخدم Sdk الإصدار 21

en

لكنني لست متأكدًا مما إذا كان هذا هو الحل لمنصات iOS.

en

I faced the same issue and is resolved for my ionic app. لقد واجهت نفس المشكلة وتم حلها من أجل تطبيقي الأيوني. I am yet to check for IOS. ما زلت بحاجة للتحقق من IOS. These are my steps. هذه هي خطواتي.
Removed existing: إزالة الموجودة:
ionic cordova plugin remove cordova-plugin-firebase البرنامج المساعد الكوردوفا الأيوني يزيل cordova-plugin-firebase
npm uninstall @ionic-native/firebase npm إلغاء التثبيت @ ionic-native / firebase
Added new: مضاف جديد:
npm install cordova-plugin-firebasex npm تثبيت cordova-plugin-firebasex
npm install cordova-plugin-firebase-core -- save npm install cordova-plugin-firebase-core - حفظ
npm install [email protected] npm تثبيت [email protected]
npm install [email protected] npm قم بتثبيت [email protected]

Thanks, شكرًا،
Ganesh غانيش

en

cordova platform rm android منصة كوردوفا rm android
cordova plugin rm cordova-plugin-firebase cordova plugin rm cordova-plugin-firebase
cordova plugin add cordova-plugin-firebasex إضافة cordova plugin إلى cordova-plugin-firebasex
cordova plugin add cordova-plugin-androidx إضافة كوردوفا plugin-plugin-androidx
cordova plugin add cordova-plugin-androidx-adapter إضافة cordova plugin إلى محول cordova-plugin-androidx
cordova platform add android منصة كوردوفا تضيف أندرويد

worked for me عملت من أجلي

en
هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات