title: WakefulBroadcastReceiver cannot be resolved to a type
body: <p>My project shows error message that <code>WakefulBroadcastReceiver cannot be resolved to a type</code>.
  I looked up for all possible reasons I can think of. I have set <code>android-support-library</code> and <code>google play services</code>'s path. Even my mapView works (if I comment below code) that means <code>google play service</code> is correctly added to project.</p>
  
  <pre><code>public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          // Explicitly specify that GcmIntentService will handle the intent.
          ComponentName comp = new ComponentName(context.getPackageName(),
              GcmIntentService.class.getName());
          // Start the service, keeping the device awake while it is launching.
          startWakefulService(context, (intent.setComponent(comp)));
          setResultCode(Activity.RESULT_OK);
      }
  }
  </code></pre>
  
  <p>Any idea why this gives error?</p>