Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Dependencies references non existing library google-play-services_lib.jar

I've been having a terrible time trying to get a simple Map to appear in an app as shown on the Google Maps v2 documentation. Eclipse keeps saying:

The container 'Android Dependencies' references non existing library 'X:\Android Development\workspace\google-play-services_lib\bin\google-play-services_lib.jar'

I found a couple people on here that had the problem and I followed those steps with no luck. I have Google Play Services installed and I even uninstalled and reinstalled it. I have imported google-play-services_lib project into Eclipse and checked move to workspace.

Any help would be amazing as I cannot get this to work. I did check in the location and there isn't a file there, so I don't know why it is missing since I have installed Google Play Services.

like image 622
saylormic Avatar asked Apr 20 '13 16:04

saylormic


2 Answers

This answer worked for me https://stackoverflow.com/a/16398399/1874332

I met this issue as well.

My solution is,

clean project google-play-services_lib firstly then clean my project which depends on play service library

like image 93
Wakawey Avatar answered Oct 23 '22 17:10

Wakawey


I fixed this issue by:

  1. Right click "google-play-services_lib" project, select "Properties".
  2. Click "Android" on left panel.
  3. Check a version of Android SDK on "Project Build Target", then select "OK" button.
  4. Rebuild google-play_services_lib project, now you have "google-play-services_lib.jar" in "bin" folder.
  5. Clean and rebuild your project.

Details: google-play-services_lib project's original build target is android-10. If you do not install this version of Android SDK in Eclipse, Eclipse just don't build it, leaving an empty bin folder. And our project reference to a .jar file in this bin folder, which results in the error message. So to fix this issue is just to check an appropriate build target for google-play-services_lib project.

like image 15
Michael Wang Avatar answered Oct 23 '22 17:10

Michael Wang