title: java.lang.RuntimeException: Unable to instantiate service com.google.android.gcm.GCMBroadCastReceiver
body: <p>I am developing an android App.</p>
  
  <p>I am implementing push notification with GCM.</p>
  
  <p>However, I cannot receive push notification from my server. The error log says below.</p>
  
  <pre><code>java.lang.RuntimeException: Unable to instantiate service
  com.google.android.gcm.GCMBroadCastReceiver: java.lang.ClassNotFoundException: 
  Didn't find class "com.google.android.gcm.GCMBroadCastReceiver" on path: DexPathList
  </code></pre>
  
  <p>AndroidManifest.xml is below.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="net.myapp"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="net.myapp.permission.RECEIVE" /&gt;
  
      &lt;permission
          android:name="net.myapp.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="net.myapp.permission.C2D_MESSAGE" /&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="14"
          android:targetSdkVersion="21" /&gt;
  
      &lt;application
          android:name="net.myapp.sub.AppController"
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;meta-data
              android:name="com.facebook.sdk.ApplicationId"
              android:value="@string/app_id" /&gt;
  
          &lt;activity
              android:name="net.myapp.MainActivity"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="net.myapp.DetailActivity"
              android:uiOptions="splitActionBarWhenNarrow" &gt;
              &lt;meta-data
                  android:name="android.support.UI_OPTIONS"
                  android:value="splitActionBarWhenNarrow" /&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                  &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
                  &lt;data android:scheme="twittercallback" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;receiver
              android:name="com.google.android.gcm.GCMBroadcastReceiver"
              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;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
                  &lt;category android:name="net.myapp" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;service android:name=".GcmIntentService" /&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>GcmBroadcastReceiver.java is below.</p>
  
  <pre><code>package net.myapp;
  
  import android.app.Activity;
  import android.content.ComponentName;
  import android.content.Context;
  import android.content.Intent;
  import android.support.v4.content.WakefulBroadcastReceiver;
  
  public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
  
          ComponentName comp = new ComponentName(context.getPackageName(),
                   GcmIntentService.class.getName());
  
          startWakefulService(context, (intent.setComponent(comp)));
          setResultCode(Activity.RESULT_OK);
      }
  
  }
  </code></pre>
  
  <p>I confirm that I properly import android-support-v4.jar and google-play-services.jar.
  I tried some solutions from Google Search, however, I cannot solve yet.</p>
  
  <p>Could you tell me how to solve the above problem?</p>