我正在尝试在MAC上使用android-studio进行开发,遇到了一个奇怪的问题。在活动代码中,我无法引用位于mipmap文件夹中的图像。特别是我创建了一个通知:
...
Notification notify = new NotificationCompat.Builder(this)
.setContentTitle(title)
.setContentText(body)
.setSmallIcon(R.drawable.ic_launcher)
.setContentIntent(startPendingIntent)
.build();
...
我收到了错误信息“无法解析符号ic_launcher”。奇怪的是,我无法将图标复制粘贴到drawable文件夹中,该文件夹为空。我应该在哪里以及如何放置这些图标,以便在Android Studio代码中可见?