phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Firebase library is funny and does not work... #2659

Open YutaSuzuka opened 5 years ago

YutaSuzuka commented 5 years ago

Expected Behaviour

Can build.

Actual Behaviour

Failed to build.

Reproduce Scenario (including but not limited to)

Installed Plugins.

cordova-custom-config 5.0.2 "cordova-custom-config"
cordova-fabric-plugin 1.1.14-dev "cordova-fabric-plugin"
cordova-open-native-settings 1.5.1 "Native settings"
cordova-plugin-advanced-http 2.0.2 "Advanced HTTP plugin"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-device 2.0.3-dev "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-ios-camera-permissions 1.2.0 "iOS Permissions"
cordova-plugin-ms-azure-mobile-apps 2.0.2 "Azure Mobile Apps"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-secure-storage 3.0.0 "SecureStorage"
cordova-plugin-speechrecognition 1.2.0 "Speech Recognition"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-themeablebrowser 0.2.17 "ThemeableBrowser"
cordova-plugin-touch-id 3.3.1 "Touch ID"
cordova-plugin-whitelist 1.3.4-dev "Whitelist"
cordova-sqlite-storage 2.2.0 "Cordova sqlite storage plugin"
cordova-support-google-services 1.1.0 "cordova-support-google-services"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-multidex 1.0.0 "Multidex"

Steps to Reproduce

cordova run android

Platform and Version

Android. (Version is unrelated.)

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Once Pixel 3 XL

Cordova CLI version and cordova platform version

Cordova CLI 7.0 Cordova Platform Android 7.1.0

Plugin version

phonegap-plugin-push 2.2.3

Logs taken while reproducing problem

Error:  '/Users/username/project/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Script '/Users/username/project/platforms/android/cordova-support-google-services/customer-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
   > All firebase libraries must be either above or below 14.0.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
dsilvestregil commented 5 years ago

Hello friend! I recommend you install the following plugin and solve the problem!

https://www.npmjs.com/package/cordova-play-services-version-adapter

macdonst commented 5 years ago

@YutaSuzuka you have to do what the error says and find all instances of where firebase is included by the plugins you added to your app and make sure they are all using Firebase 14.0.0 or better.

ssmithereens commented 5 years ago

We cleared our Gradle cache and were able to get a successful build. Issue caused by this jcenter issue: https://issuetracker.google.com/issues/120759347#comment30