I am using Android Studio version 2.1.2, and I am trying to implement Google Cloud Messaging to my app.
To be able to do that I hav
Google uses your package name as a unique name to identify your app. Since you mentioned that it is on Google Play, you should use the one in Gradle file to make it possible.
And to answer the second part of your question, it is just a convention to define the app as your permission name, so you can use the one mentioned in Gradle file.
Hope this helps :)