GCM quick start App from google-services repository
This is the App google made for us to test GCM and I hope to add comments and made minor modifications thus learning how to use the GoogleCloudMessaging API and Android Studio with Gradle..
you can get the set up details from here