I am trying to add notification services to my app using FCM and tutorial given on https://www.simplifiedcoding.net/firebase-cloud-messaging-android/ Everything has done and
Use something like this:
dependencies { compile 'com.google.android.gms:play-services:11.0.1' compile 'com.google.firebase:firebase-core:11.0.1' compile 'com.google.firebase:firebase-messaging:11.0.1' } apply plugin: 'com.google.gms.google-services'
Make sure apply plugin comes below dependencies.