我正在尝试将Cordova的状态栏通知插件添加到我的
Android应用程序中,但是我的代码出错了.
这是有问题的代码:
- Notification noti = new Notification.Builder(context)
- .setContentTitle(contentTitle)
- .setContentText(contentText)
- .setSmallIcon(icon)
- .build();
错误发生在.build()上,Eclipse告诉我:
“The method build() is undefined for the type Notification.Builder”