I have Added Firebase to android app for push notification. I have updated build.gradle before i have used. Its working fine.
compile \'com.google.firebase:
If you read documentation they are indicating you update your latest Google Repository in the Android SDK manager
Google Repository in the Android SDK manager
So just go to Android SDK Manager and install the latest version of below two libraries
Android SDK Manager
install the latest version of below two libraries
1-Google Play Services
2-Google Repository
Check the image from documentation: