dani jinji
dani jinji

Reputation: 471

Android gcm - trouble adding it to my project

I am trying to add gcm to my project and I am facing many issues. After I managed to sgn up and download the configuration files, I put the json file in the app folder, and this is what I have in my gradle father file:

dependencies { classpath 'com.android.tools.build:gradle:1.5.0' classpath 'com.google.gms:google-services:2.0.0-alpha6'

and this is what I have on my gradle app file:

apply plugin: 'com.google.gms.google-services' apply plugin: 'com.android.application'

but when I try to run it, it says:

Error:Execution failed for task ':app:processDebugGoogleServices'. No matching client found for package name 'com.example.a.feedapp'

what can I do?

Upvotes: 0

Views: 86

Answers (1)

Moh'd Awad
Moh'd Awad

Reputation: 1768

i would recommend you start with FCM it's the new version of GCM and pretty easy integrating it in your app

Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! See the FAQ to learn more. If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future.

Upvotes: 1

Related Questions