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
The old v4 .jar file is deprecated! Please uninstall and install again! Will work ;)
Make sure that you have the latest Android Support package added to your project. For example, this sample project has a suitable android-support-v4.jar
and demonstrates the use of WakefulBroadcastReceiver
.