Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error getting advertiser id

I noticed that my google analytics ecommerce data are not properly delivered by my android app, while all the other analytics data (screen views, exceptions) are correctly published.

I already opened a bounty about this topic but digging further I discovered some errors in the logcat:

Error getting advertiser id: java.io.IOException: java.util.concurrent.TimeoutException: Timed out waiting for the service connection

Successfully bound to service but never got onServiceConnected callback

I suspect these errors are due to something not working at play-services level, that's why I'm opening a new thread.

Since the above errors appear in logs before hits are delivered my theory is that my ecommerce data are not correctly posted because of them. Did anybody here ever see anything like that? What could I try in order to fix it?

Please notice I'm using (taken from build.gradle)

compile 'com.google.android.gms:play-services-analytics:9.4.0'
compile 'com.google.android.gms:play-services-ads:9.4.0'

apply plugin: 'com.google.gms.google-services'

and the gradle plugin

classpath 'com.android.tools.build:gradle:2.2.0-beta1'
like image 638
Marco Zanetti Avatar asked Aug 11 '16 09:08

Marco Zanetti


1 Answers

I fixed this error by adding this to dependencies block in gradle.build file:

implementation 'com.google.android.gms:play-services-base:16.0.1'
like image 67
Musab Gultekin Avatar answered Sep 17 '22 17:09

Musab Gultekin