问题
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