I am working on Notifications and I have to use setLatestEventInfo. However, Android Studio shows the following error message:
setLatestEventInfo
cannot re
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.