'android.app.Notification$Builder' Class not found

﹥>﹥吖頭↗ 提交于 2019-12-12 02:18:56

问题


Background

I'm working to make my app supporting 2.3.3 version (Api level 10), but i got the below error.

Log

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

回答1:


Notification.Builder was added in API level 11. For earlier versions, NotificationCompat.Builder should be used instead.

Since the error comes from Google Play Services, use google_play_services_froyo instead of google_play_services for pre-11 targets.



来源:https://stackoverflow.com/questions/26592018/android-app-notificationbuilder-class-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!