I don´t know why it does show that error This is the code:
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context, channelId)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(getResources().getString(R.string.congrats))
.setContentText(getResources().getString(R.string.done_workout))
.setAutoCancel(true);
CodePudding user response: