Cannot Resolve Method setLatestEventInfo

后端 未结 4 2328
夕颜
夕颜 2020-11-27 03:28

I am working on Notifications and I have to use setLatestEventInfo. However, Android Studio shows the following error message:

cannot re

4条回答
  •  無奈伤痛
    2020-11-27 04:00

    According to : https://developer.android.com/sdk/api_diff/23/changes/android.app.Notification.html

    This method was removed in M (api 23). So if your compile SDK version is set to api 23+ you'll see this issue.

提交回复
热议问题