Can not install google-play-services into Eclipse correctly (trying to get maps working)

て烟熏妆下的殇ゞ 提交于 2019-11-29 14:14:44

Have you tried to use Google APIs instead of Android 4.2.2? Using that will use Google Maps dependencies.


I just made a "working app" (it throws no errors but I was too lazy to make a key) using Google Maps v2 and not Google APIs as build but Android 4.1. This was my procedure.

  1. Download the library from the SDK download manager.
  2. Copied the folder "google-play-services_lib" which had this path ".../android-sdk/extras/google/google_play_services/libproject/google-play-services_lib" to another folder where I keep my libraries.
  3. In Eclipse I chose New Project - Android Project from Existing Code. It got imported without any problems.
  4. Right click the test project, click Properties - Android - Add - google-play-services_lib which now is in my workspace.
  5. See if it works by trying to subclass com.google.android.gms.maps.MapFragment.

Please respond if you get any errors, if you do it right it will all work. Good luck.

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

Hope it helps:)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!