' android.app.Notification $生成器'找不到课程

时间:2014-10-27 16:18:47

标签: android google-play-services google-cloud-messaging

背景

我正努力让我的应用支持2.3.3版本(Api等级10),但我收到以下错误。

日志

Could not find class 'android.app.Notification$Builder', referenced from method    
com.google.android.gms.common.GooglePlayServicesUtil.showErrorNotification

1 个答案:

答案 0 :(得分:1)

在API级别11中添加了

Notification.Builder。对于早期版本,应使用NotificationCompat.Builder代替。

由于错误来自Google Play服务,因此对于11之前的目标,请使用google_play_services_froyo代替google_play_services