Android“找不到方法android.app.Notification $ Builder.setLocalOnly" [英] Android " Could not find method android.app.Notification$Builder.setLocalOnly "
问题描述
现在,我正在测试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屋!