AnswerDroid
AnswerDroid

Reputation: 1893

Android: Couldn't find GA library on maven

I am trying to add a library dependency from my Android Studio for below:

'com.google.android.gms:play-services-analytics:7.5.0'

However, I couldn't find the package.
I even searched for it on search.maven.org but couldn't find it.
However in the google docs it is mentioned :developers.google.com/android/guides/setup
Can someone point the mistake I am doing?
Meanwhile I acheived my task using this link

Upvotes: 0

Views: 148

Answers (1)

Karan Maru
Karan Maru

Reputation: 1001

To make the Google Play services APIs available to your app:

  1. Open the build.gradle file inside your application module directory.
  2. Add a new build rule under dependencies for the latest version of play-services.

    apply plugin: 'com.android.application'

    dependencies {
        compile 'com.google.android.gms:play-services:7.5.0'
        compile 'com.google.android.gms:play-services-analytics:7.5.0'
    }
    

Be sure you update this version number each time Google Play services is updated.

3.Save the changes and click Sync Project with Gradle Files in the toolbar.

Upvotes: 2

Related Questions