Adding Google Play Services Library To Your Project

To develop an app using the Google Play services APIs, you must add Google Play services Library to your app. Google Play services can be downloaded from the SDK Manager. Once it is downloaded we will import it to our App.

Download Google Play Services SDK

1.) Launch Android SDK Manager
Go to (ADT/Eclipse) the menu bar Window >> Android SDK Manager
2.) In the SDK Manager window
-Scroll down and expand Extras folder
-Select Google Play services
-Click Install Package


Import the Library into Workspace

Now you need to import Google Play services library into your app current workspace.

File >> Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it. The Google Play services SDK is saved in your Android SDK environment at /extras/google/google_play_services/.


Now, you should be able to see the google-play-servies-lib project imported into your workspace.

Add Google Play services to Your App

1.) Right-click your App project
2.) Select Properties
3.) In the Properties window select Android
4.) Under the Library section click Add
5.) Select google-play-services-lib
6.) Click OK


You can also check the video:

Leave a Comment: