Search code examples
androideclipsesdkgoogle-maps-api-2

Can't import Android google-play-services_lib


It's second day I've been fighting with Eclipse trying to import Google Maps API v2. I have tried hundreeds of variant, but the library or is not imported and no accessible from my project or Unable to execute dex: Multiple dex files define Landroid/UnusedStub;

Android configurations[1]

http://imageshack.us/photo/my-images/89/t5p0.jpg/

Configurations - Build path[2]

http://imageshack.us/photo/my-images/507/nbgo.jpg/

Thank you


Solution

  • This means that somewhere the google play services JAR file is referenced more than once in your project.

    Most likely once due to a library project dependency, and possible a second time as an Android dependency (by having the JAR file in your libs folder, or by referencing it some other way using a build configuration).

    Remove all other references to Google Play Services and only keep the library project dependency. ADT will do the rest.