WakefulBroadcastReceiver cannot be resolved to a type

前端 未结 8 1247
日久生厌
日久生厌 2021-01-01 18:01

My project shows error message that WakefulBroadcastReceiver cannot be resolved to a type. I looked up for all possible reasons I can think of. I have set

8条回答
  •  温柔的废话
    2021-01-01 18:07

    I have the same problem. I have updated 'Android support library' via Android SDK Manager but still cannot find WakefulBroadcastReceiver.

    The solution is you have to delete 'Android support library' in Android SDK Manager and re-install it!

    I have to say developing for Android is not delighting. Google deprecated c2dm and com.google.android.gcm.GCMBaseIntentService so that all tutorials about android push notification become obsolete.

提交回复
热议问题