title: GCM Failed to resolve target intent service
body: <p>I tried to get the GCM push notifications working on my Android 6.0.1 device. Unfortunately I'am running into an error.
  The log says:</p>
  
  <blockquote>
    <p>E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
    E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.</p>
  </blockquote>
  
  <p>But I'am not using firebase. 
  So why does the log says something about firebase and why does this error happen?</p>
  
  <p>My AndroidManifest.xml file:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.push.test"&gt;
  
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;permission android:name="com.push.test.permission.C2D_MESSAGE" android:protectionLevel="signature" /&gt;
  &lt;uses-permission android:name="com.push.test.permission.C2D_MESSAGE" /&gt;
  
  &lt;application
      [...] &gt;
  
      &lt;activity android:name=".MainActivity"&gt;
          [...]
      &lt;/activity&gt;
  
      &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 android:priority="1000"&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;category android:name="com.push.test" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;!-- [START gcm_listener] --&gt;
      &lt;service
          android:name=".GcmListener"
          android:exported="false" &gt;
          &lt;intent-filter android:priority="1000"&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
      &lt;!-- [END gcm_listener] --&gt;
  
      &lt;!-- [START instanceId_listener] --&gt;
      &lt;service
          android:name=".InstanceListener"
          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;
      &lt;!-- [END instanceId_listener] --&gt;
  
      &lt;service
          android:name=".RegistrationIntentService"
          android:exported="false"&gt;
      &lt;/service&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>My GCMListener.class file:</p>
  
  <pre><code>public class GcmListener  extends GcmListenerService {
  
  @Override
  public void onMessageReceived(String from, Bundle data) {
      String message = data.getString("message");
  
      if (from.startsWith("/topics/bewegung")) {
          sendNotification(message);
      }
  
  }
  [...]
  </code></pre>
  
  <p>google-service.json is already located in /app.</p>
  
  <p>Marvin</p>
  
  <p>[EDIT:]
  Got it!
  I registered an wrong topic on initial start.
  Now its working perfect.</p>