i am working with Google-Analytics for some while and everything works fine.
in the app gradle file it looks like this:
compile ('com.google.android.gms:play-services-analytics:9.2.0')
recently i added firebase-Ads to my app
in the app gradle file it looks like this:
compile('com.google.firebase:firebase-ads:9.4.0')
it all compiles
but when i excecute the following command:
GoogleAnalytics analytics = GoogleAnalytics.getInstance(mCtx);
i get NoSuchMethodException
what can it be?
Thanks guys
You should pass play-services-analytics to 9.4.0. Try this compile ('com.google.android.gms:play-services-analytics:9.4.0')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.