I am working on a project in which I want to show a Map, for that I want to add google-play-service-lib
but when I add it my R.java
files gets deleted
making sure your Google play services is present in same working directory and make this project as a reference to the original project..
Ensure you have the latest version (v2) of the Google Play Services installed.
Select Window > Android SDK Manager or run android at the command line.
Scroll to the bottom of the package list and select Extras > Google Play services. The Google Play services SDK is downloaded to your computer and installed in your Android SDK environment at <android-sdk-folder>/extras/google/google_play_services/
Add the Google Play Services project into your Eclipse workspace.
Click File -> Import..., select Android -> Existing Android Code into Workspace
Browse to and select <android-sdk-folder>/extras/google/google_play_services/libproject/google-play-services_lib
To add the dependency to Google Play Services into your project
Project -> Properties -> Android -> Library, Add -> google-play-services_lib
Providing the link you can see the importing Google play services
and even check your google play services is up to date by going to sdk manger...