我正在Android本地构建自己的通知托盘。我正在尝试使用过时的android.app.Notification
资源(而不是现在不推荐使用的NotificationCompat
资源)
在一种情况下,我想构建一个带有位图图标的MessagingStyle
。为此,需要类android.app.Person
。 (MessagingStyle
不支持NotificationCompat
中的位图图标)
看一下docs,我看到android.app.Person
是在API级别28中添加的。CN1的构建服务器抛出错误cannot find symbol import android.app.Person
。这是因为CN1定位于SDK 27,我正确吗?我可以使用一些构建提示来包含一个更高的允许我使用android.app.Person
的提示吗?
谢谢
答案 0 :(得分:1)
似乎在添加构建提示android.buildToolsVersion=28