title: Failed to resolve target intent service, Error while delivering the message: ServiceIntent not found
body: <p>I try to make <strong>gcm</strong> work.</p>
  
  <p>When our server sends a push notification I got these two errors in my app's log:</p>
  
  <blockquote>
    <p>E/GcmReceiver(8049): Failed to resolve target intent service, skipping
    classname enforcement E/GcmReceiver(8049): Error while delivering the
    message: ServiceIntent not found.</p>
  </blockquote>
  
  <p>In my app's folder I got the <code>google-services.json</code> file.</p>
  
  <p>I have added the <strong>2 needed services and the receiver</strong> to my Manifest:</p>
  
  <pre><code>  &lt;receiver
          android:name="com.google.android.gms.gcm.GcmReceiver"
          android:exported="true"
          android:permission="com.google.android.c2dm.permission.SEND" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;category android:name="com.myapppackage.application" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
  
      &lt;service
          android:name="com.myapppackage.application.gcm.newgcm.RegisterGCMTokenService"
          android:exported="false"&gt;
      &lt;/service&gt;
  
  
      &lt;service
          android:name="com.myapppackage.application.gcm.newgcm.MyInstanceIDListenerService"
          android:exported="false"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.gms.iid.InstanceID"/&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>I have <strong>also added these two as java classes.</strong> The gcm token providing and uploading to our server's is fine. <strong>I also got the push 'event' but somehow I got those 2 errors above, and no messages.</strong></p>
  
  <p><strong>I have added my project number</strong> from google api console to <code>strings.xml</code> as <code>'google_app_id'</code></p>
  
  <p>The API keys should be all right because <strong>I do get the push event, but somehow the message is not provided.</strong></p>
  
  <p>My gradle's <strong>app level dependencies have:</strong></p>
  
  <pre><code>compile 'com.google.android.gms:play-services:8.+'
  </code></pre>
  
  <p>My gradle's <strong>project level dependencies have:</strong></p>
  
  <pre><code>classpath 'com.google.gms:google-services:1.3.1'
  </code></pre>
  
  <p>So <strong>what the heck?!</strong> Please help me if you can.</p>