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
I had this problem today here's how I fixed it:
It's due to the Android Support JAR not being updated like the SDK manager one. You can delete it from your libs folder then do this:
Here 's a screenshot
Then go back to your class hit Ctrl + Shift + O
It will import your missing library:
import android.support.v4.content.WakefulBroadcastReceiver;
Project > Clean
and Voilà !!