title: Android:Which one to use for package name? Manifest's packagename or Gradle applicationId?
body: <p>I am using <strong>Android Studio version 2.1.2</strong>, and I am trying to implement <strong>Google Cloud Messaging</strong> to my app.</p>
  
  <p>To be able to do that I have to obtain a Google Services json file(configuration file) to add to my project.</p>
  
  <p>For getting this file from Google Api console panel, I am required to provide <strong>my app name</strong> and <strong>my app's package name</strong>. And here is where my problem starts.</p>
  
  <p>In my app, <strong>package name in  Manifest file is different than the applicationId in the application level build.gradle file</strong>. And On google play store, the applicationId is being used.</p>
  
  <p>To Illustrate what I mean, In my Manifest file;</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.myapp"&gt;
  </code></pre>
  
  <p>and in my gradle file;</p>
  
  <pre><code>android {
  compileSdkVersion 23
  buildToolsVersion "23.0.2"
  defaultConfig {
      applicationId 'com.menu.jkrk'
      minSdkVersion 16
      targetSdkVersion 23
      versionCode 3
      versionName "1.0"
  }
  </code></pre>
  
  <p><strong>Now, which one of those to provide to google as package name to get configuration file?</strong></p>
  
  <p><strong>Secondly, which one should use for requesting permisson of C2D_MESSAGE in my manifest file where the format is;</strong></p>
  
  <pre><code>&lt;application-package-name&gt; + ".permission.C2D_MESSAGE
  </code></pre>
  
  <p>Thanks for any help.</p>