Android“找不到方法android.app.Notification $ Builder.setLocalOnly" [英] Android " Could not find method android.app.Notification$Builder.setLocalOnly "

查看:451
本文介绍了Android“找不到方法android.app.Notification $ Builder.setLocalOnly"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Android初学者。

现在,我正在测试Google Analytics,并且遇到以下日志:


无法找到方法android.app.Notification $ Builder.setLocalOnly,从方法com.google.android.gms.common.GooglePlayServicesUtil.zza引用


是什么意思,我该怎么办? API级别20及以上提供 setLocalOnly 。我是否可以知道您是否将Android支持库v4或AppCompat v7添加到您的应用程序中?它可能有帮助。我相信Google Play服务会使用Support Library v4中提供的NotificaionCompat(如果可用)。


I'm an Android Beginner.

Nowadays, I'm testing Google Analytics and I met the following log :

Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza

what is mean and what I have to do?

解决方案

setLocalOnly is available on API Level 20 and above. May I know that do you include Android Support Library v4 or AppCompat v7 to your app yet? It might helps. I believe that Google Play Services will use NotificaionCompat provided in Support Library v4 if available.

这篇关于Android“找不到方法android.app.Notification $ Builder.setLocalOnly"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆