The first thing we need to know is what we need to add to our Android Studio. We have just learned that the APK is available in the Google Play store and it is the actual runtime of the services. We, as developers, only need this package in our testing device while debugging our application. What we need to add to Android Studio is the Google Play services client library.
This library has to be declared as a dependency to your application, so perform the following steps:
Open the
build.gradle
file for your application module(/app/build.gradle
).Type the following line inside the
dependencies
block:dependencies { … compile 'com.google.android.gms:play-services:5.+' }
The latest Google Play services version is 5.0 (July 2014). When new updates of the library are published, you will need to update the version number in the
build.gradle
file.Navigate to Tools | Android | Sync Project with Gradle Files to synchronize your project with the new dependency...