NativeScript / push-plugin

Contains the source code for the Push Plugin.
Apache License 2.0
123 stars 45 forks source link

Google services plugin version conflict #246

Open halaharr opened 6 years ago

halaharr commented 6 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Execution failed for task ':app:processF0F1F2F3F4F5F6F7F8DebugGoogleServices'.

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.2.+.

Please, tell us how to recreate the issue in as much detail as possible.

(1) Added the plugin (2) Added google-services.json (3) Updated app.gradle (firebaseMessagingVersion = "+") (4) ran tns build android

Is there any code involved?

tbozhikov commented 6 years ago

Hi @halaharr,

Why are you setting firebaseMessagingVersion = "+" in the app.gradle? The problem most-probably comes from the different versions that your app use, and the fixed version that the push-plugin uses:

compile 'com.google.firebase:firebase-messaging:12.0.1'

Aside from that, the push-plugin is now deprecated, and you'd better switch to the Firebase plugin (especially if you are beginning with push notifications). Also, you might not hit this issue there ;)