Android “ Could not find method android.app.Notification$Builder.setLocalOnly ”

倾然丶 夕夏残阳落幕 提交于 2020-01-03 15:56:11

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/31002765/android-could-not-find-method-android-app-notificationbuilder-setlocalonly

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