我想做的正是他所做的:Android 时间通知 https://stackoverflow.com/questions/17053996/android-notification-at-time但在我的 AlarmReceiver 类中,出现错误: The method build() is undefined for the type notificationCompat.Builder, at line: mNotificationManager.notify(1, mBuilder.build());
在android开发者网站上有类似的代码,但出现了相同的错误(http://developer.android.com/training/notify-user/build-notification.html http://developer.android.com/training/notify-user/build-notification.html).
任何帮助是极大的赞赏。
您可能使用的是旧版本的 Android 支持包。确保您的项目有最新的副本android-support-v4.jar
or android-support-v13.jar
in libs/
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)