Android “ Could not find method android.app.Notifi

2019-06-23 19:23发布

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?

2条回答
狗以群分
2楼-- · 2019-06-23 20:17

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.

查看更多
别忘想泡老子
3楼-- · 2019-06-23 20:22

There were changes to android.support.v4 and appcompat-v7. Make sure you have the latest ones. This may be similar to: Problems implementing the new GCM Client for Android

查看更多
登录 后发表回答