Closed giosgu closed 5 years ago
phonegap-plugin-push
depends on another plugin - cordova-support-google-services - to pull in the Google Services plugin.
This implicitly includes components of the Play Services library (and maybe Firebase - not sure) so cordova-android-firebase-gradle-release
and cordova-android-play-services-gradle-release
cannot be used to override the requested versions in the same way they can be used for this plugin.
You need to figure out what versions of the Play Services library (and maybe Firebase) are being included by the version of the Google Services plugin being pulled in by cordova-support-google-services
and set the plugin variables for cordova-android-firebase-gradle-release
and cordova-android-play-services-gradle-release
to align with those. The latter will override this plugin's Play Services default and so align with whatever version the Google Services plugin is requiring.
Based on your comment, i managed to make the build by adding the cordova-play-services-version-adapter plugin, which applied the following changes:
I'm submitting a ... (check one with "x"):
Bug report
Regarding this issue, i'm having the same problem with phonegap-plugin-push 2.2.3, and i've been unable to solve it applying the fix that uses plugins cordova-android-firebase-gradle-release and cordova-android-play-services-gradle-release. I'll be grateful if you could take a look at it.
Expected behavior:
Steps to reproduce:
Environment information
8.1.2 (cordova-lib@8.1.1)
8.1.2 (cordova-lib@8.1.1)
cordova-android-firebase-gradle-release 2.0.0 "cordova-android-firebase-gradle-release"
cordova-android-play-services-gradle-release 2.0.0 "cordova-android-play-services-gradle-release"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-support-google-services 1.1.0 "cordova-support-google-services"
phonegap-plugin-multidex 1.0.0 "Multidex"
phonegap-plugin-push 2.2.3 "PushPlugin"
Android build issue:
v10.13.0
4.1 4.6 buildOutputCleanup
If using an [Ionic Native Typescript wrapper]() for this plugin:
ionic (Ionic CLI) : 4.8.0 (C:\Users\***\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.3
@ionic/app-scripts : 3.2.1
npm list | grep "@ionic-native"
// Paste any relevant JS/native console output here