WakefulBroadcastReceiver cannot be resolved to a type

前端 未结 8 1248
日久生厌
日久生厌 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:12

    It's because of android-support-v4.jar file, make sure you have the latest. If you think you have it in your project just do a trick. Find same file in another project, say create new project with latest SDK. Copy it's jar file into your this project and replace the older one. Now import import android.support.v4.content.WakefulBroadcastReceiver; and see it working..

提交回复
热议问题