Android Tracker 0.5.x crashing with Play Services 9.8.0

Hey @alex @josh!

We’ve just updated Play Services from 9.4.0 to 9.8.0 and started getting a lot of crashes with Android Tracker (0.5.4). Please find attached the stracktrace and additional info from Crashlytics.

Any ideas what the problem might be? Updating Play Services was the only relevant update on our mobile tracking environment.

Thanks!
Bernardo

Hi @bernardosrulzon I believe this is related to this ticket which was patched in 0.6.0.

It appears that in some versions of Play Services library the exception generated has a null cause - meaning that we generate a new exception which is then not caught.

Relevant line: https://github.com/snowplow/snowplow-android-tracker/blob/0.5.4/snowplow-android-core/src/main/java/com/snowplowanalytics/snowplow/tracker/utils/Util.java#L220

I would recommend upgrading to the latest version of the Tracker (0.6.1) to get this issue resolved.

Sorry for the hassle!

Josh

1 Like

Hey @josh - you’re right, problem was solved upgrading to 0.6.1!

This version looks great by the way - especially the revised session logic, network type and application error events. Will certainly help a lot with debugging!

Cheers!

1 Like

Glad to hear it @bernardosrulzon!