Я пытаюсь использовать phonegap-plugin-push
и cordova-plugin-firebase-analytics
вместе в моем проекте IONI C 4. Это сосуществование дает много проблем зависимости. Я пробовал несколько обходных путей, предложенных в приведенных ниже URL, но у меня ничего не получалось.
https://github.com/phonegap/phonegap-plugin-push/issues/2796
https://github.com/phonegap/phonegap-plugin-push/issues/2112
Версии:
IONIC version 4.6.0
"cordova": "9.0.0",
"cordova-android": "8.0.0",
"cordova-clipboard": "^1.3.0",
"cordova-ios": "5.1.1",
"cordova-plugin-firebase-analytics": "1.1.1",
"phonegap-plugin-push" : 2.3.0
Если кому-нибудь удастся чтобы использовать эти два плагина вместе, пожалуйста, помогите решить следующие проблемы.
Android ошибка
`Failed to capture fingerprint of input files for task ':app:preDebugBuild' property` 'compileManifests' during up-to-date check.
> In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.0.
0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-messaging:17.0.0 -> com.google.firebase:firebase-iid@[16.0.0], but fire
base-iid version was 17.1.2.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-iid@17.1.2
-- Project 'app' depends onto com.google.firebase:firebase-analytics@16.5.0
-- Project 'app' depends onto com.google.firebase:firebase-messaging@17.0.+
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@16.5.0
-- Project 'app' depends onto com.google.firebase:firebase-core@16.0.+
-- Project 'app' depends onto com.google.firebase:firebase-core@16.0.9
-- Project 'app' depends onto com.google.firebase:firebase-messaging@17.0.0
iOS Проблема зависимости POD
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FirebaseAnalytics":
In snapshot (Podfile.lock):
FirebaseAnalytics (= 5.8.1)
In Podfile:
Firebase/Core (~> 5.6) was resolved to 5.20.2, which depends on
FirebaseAnalytics (= 5.8.1)
FirebaseMessaging (~> 2.0.0) was resolved to 2.0.8, which depends on
FirebaseAnalytics (~> 4.0)