fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 999 forks source link

Build error #310

Open akash-pal opened 7 years ago

akash-pal commented 7 years ago

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 9.0.0.

pierrybos commented 7 years ago

306

akash-pal commented 7 years ago

yes resolved, though temporary fix

rehanhanar7 commented 7 years ago

Hi may I know what is the exact fix ??

Below is my project.properties file

target=android-23 android.library.reference.1=CordovaLib cordova.gradle.include.1=cordova-plugin-badge/usc-badge.gradle cordova.system.library.1=com.android.support:support-v4:+ cordova.system.library.2=com.google.firebase:firebase-core:+ cordova.system.library.3=com.google.firebase:firebase-messaging:+ cordova.gradle.include.2=cordova-plugin-fcm/usc-FCMPlugin.gradle cordova.system.library.4=com.squareup.okhttp3:okhttp:3+

The below is the dependancy in Build.gradle file of PROJECT_NAME/platforms/android/build.gradle file

dependencies { classpath 'com.android.tools.build:gradle:1.5.0' }

Below is the issue i get :

Can anyone tell me what is exact fix ???

After reading the above posts I did the following change in project.properties file. Build becomes successful but the App crashes.

target=android-23 android.library.reference.1=CordovaLib cordova.gradle.include.1=cordova-plugin-badge/usc-badge.gradle cordova.system.library.1=com.android.support:support-v4:+ cordova.system.library.2=com.google.firebase:firebase-core:9.0.0 cordova.system.library.3=com.google.firebase:firebase-messaging:9.0.0 cordova.gradle.include.2=cordova-plugin-fcm/usc-FCMPlugin.gradle cordova.system.library.4=com.squareup.okhttp3:okhttp:3+

Can anyone tell me what to do in the above config file to fix the build issue and that app should run withouty crash.

pierrybos commented 7 years ago

For me i just fix my problems when do a cordova plugin add https://github.com/lp1bp/cordova-plugin-fcm

And waiting this repo accepts that pull request.