i want to start using gcm in my project, and i follow google instruction for that, but when i add dependencies in my build.gradle file as follow :
top level : classpath 'com.google.gms:google-services:3.0.0'
project level : apply plugin: 'com.google.gms.google-services'
i have an error that says you must add firebase to your dependencies :
freeCompile 'com.google.firebase:firebase-core:9.0.0'
but after i add this to my dependencies i have another error like this :
Error:(74, 0) Gradle DSL method not found: 'freeCompile()' Possible causes:
free, so you if have not defined afreeproduct flavor then ofcourse its not going to work, in this case you can either add a new product flavor calledfreeor just replacefreeCompilewithcompile, this will compile the firebase-core lib and make it available for all product flavors - Bhargav