I am trying to develop in Android studio on MAC and I am facing the weid problem. Inside the action code, I mean the image that is in the mipmap folder. In particular, I created a notification like:
... Notification notify = new NotificationCompat.Builder(this) .setContentTitle(title) .setContentText(body) .setSmallIcon(R.drawable.ic_launcher) .setContentIntent(startPendingIntent) .build(); ...
and I get the error "cannot resolve ic_launcher character". The strange problem also is that I cannot copy the icon paste to the drawable folder, which is empty. Where and how should I place the icons so that they appear in the code in the android studio?
source share