我是Android初学者。
如今,我正在测试Google Analytics,我遇到了以下日志:
无法找到方法android.app.Notification $ Builder.setLocalOnly,从方法com.google.android.gms.common.GooglePlayServicesUtil.zza中引用
什么意思,我必须做什么?
答案 0 :(得分:3)
setLocalOnly
位于 API级别20及以上。我可以知道您是否已将Android Support Library v4或AppCompat v7包含在您的应用中?这可能有帮助。我相信Google Play服务将使用支持库v4中提供的NotificaionCompat(如果可用)。
答案 1 :(得分:0)
android.support.v4和appcompat-v7发生了变化。确保你有最新的。这可能类似于: Problems implementing the new GCM Client for Android