You need to specify the correct library at compile time. But what you are describing requires Android to use this particular library at runtime.
You need to right-click the Eclipse project, Properties -> Android. In Project Build Target select any target with a Google Inc. provider Google Inc. .
source share