Unable to properly install google-play services in Eclipse (trying to get maps working)

My current wokspace installation is as follows:

enter image description hereenter image description here

However, people told me that in order to work with maps, I also need to have "google-play-services_lib.jar" in my "Android dependent" folder . And the way to do this was through: "for Google Play Services in your project Project โ†’ Properties โ†’ Android โ†’ Library, Add โ†’ google-play-services_lib "

The only problem is that it is always after the initial green marker, it turns into a red cross when you reopen "Project โ†’ Properties โ†’ Android โ†’ Library" ... and also no "google-play- services_lib.jar" is added to "Android Dependencies "in prooject

This question is outside the spring of this: Trying to get the demo version of v2 Android v2, which I mentioned above, was necessary to get the cards working in my application. (Otherwise, an error occurs when inflating the XML containing the map fragment.)

+6
source share
2 answers

Have you tried using Google APIs instead of Android 4.2.2 ? Using this, Google Maps dependencies will be used.


I just created a "working application" (it does not contain errors, but I was too lazy to make a key) using Google Maps v2, not the Google API as a compilation, but Android 4.1. That was my procedure.

  • Download the library from the SDK download manager.
  • I copied the folder "google-play-services_lib" that had this path "... / android-sdk / extras / google / google_play_services / libproject / google-play-services_lib" to another folder where I store my libraries.
  • In Eclipse, I selected New Project - Android Project from existing code. It was imported without any problems.
  • Right-click the test project, select "Properties" - "Android" - "Add" - google-play-services_lib, which is now in my workspace.
  • See if this works with the subclass com.google.android.gms.maps.MapFragment .

Please answer if you get any errors, if you do it right, everything will work. Good luck.

+4
source

First you need to remove the google-play-services project from your package explorer, then you need to copy the "google-play-service" folder from the C: / android-sdks directory ..... google-play- service for your WORKSPACE, then open Eclipse, import the project "google-play-services" also from your WORKSPACE, and then you can add the library ...

Hope this helps :)

0
source

All Articles