rekire rekire - 1 year ago 96
Android Question

Which dependency is required for Awareness API?

I want to check out the new Awareness API which is quite new. I’m using Play Services 9.0.2. The documentation has this example:

GoogleApiClient client = new GoogleApiClient.Builder(context)

However, there is no hint which dependency needs to been added. Any idea?

Answer Source

I found it out: I need to upgrade to PlayServices 9.2.0 and the dependency is hidden in play-services-contextmanager. Just add those dependencies and here we go:

compile ''
compile ''

Please use the latest play services library, at the time I wrote this answer it was 9.2.0

Keep in mind that this library was added in the Play Services Repository v31. Make sure that you have at least that version installed in the SDK manager.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download