I have an ongoing notification with a "Cancel" action. It looks something like this:
NotificationCompat.Builder progressNotif = new NotificationCompat.Builder(context, BackupService.BACKUP_RUNNING_NOTIFICATION); ... ... // adding an action progressNotif.addAction(cancelAction);
Next, after the job is over, I want to remove the "Cancel" action. What I was trying was this:
But recently, Android Studio is giving me this error:
Builder.mActions can only be accessed from within the same library group (groupId=com.android.support)
This will probably cause a problem in Android Pie and above. What does this error mean? How do I resolve it?