title: Google Cloud Messaging exception
body: <p>I'm cloning into my desktop the following repository: <a href="https://github.com/googlesamples/google-services.git" rel="nofollow noreferrer">https://github.com/googlesamples/google-services.git</a></p>
  
  <p>and then I import the </p>
  
  <pre><code>google-services/android/gcm
  </code></pre>
  
  <p>into Android Studio.</p>
  
  <p>Then I follow the instructions and put the API_KEY inside the</p>
  
  <pre><code>GcmSender
  </code></pre>
  
  <p>in line 31. When I run the app, I get an exception.</p>
  
  <pre><code>java.io.IOException: INVALID_SENDER
          at com.google.android.gms.iid.zzc.zzb(Unknown Source)
          at com.google.android.gms.iid.zzc.zza(Unknown Source)
          at com.google.android.gms.iid.InstanceID.zzc(Unknown Source)
          at com.google.android.gms.iid.InstanceID.getToken(Unknown Source)
          at gcm.play.android.samples.com.gcmquickstart.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:54)
          at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
          at android.os.Handler.dispatchMessage(Handler.java:99)
          at android.os.Looper.loop(Looper.java:137)
          at android.os.HandlerThread.run(HandlerThread.java:60)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xM3x7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xM3x7.png" alt="GCM error screenshot"></a></p>
  
  <p>The instructions mention that I should copy the google-services.json file I just downloaded into the app or mobile?</p>
  
  <p>I don't know where to find the json file. Maybe this is reason that  I got exception.</p>