Reputation: 1893
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
Reputation: 1001
To make the Google Play services APIs available to your app:
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