Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java The import com.google cannot be resolved

Tags:

java

android

I am working on building and running an android application in Eclipse. I have successfully installed the Android kit, along with the google api via the ADT. I downloaded a sample google map android application to run. very simple file. However, my lib references don't seem to be working fine. Even though in the manifest file, the google map api is referenced, my application is not able to resolve the reference

any idea what I need to do next to get the referencing issues resolved please?

like image 386
Kobojunkie Avatar asked Aug 04 '12 07:08

Kobojunkie


3 Answers

You have to download google apis for a particular api level through android sdk manager.

enter image description here

Select that google api as project build target.

enter image description here

like image 85
Chirag Avatar answered Sep 25 '22 10:09

Chirag


In Eclipse you should be able to configure the project's classpath to point to the libraries in question. Assuming you have them and the plugin. See the SDK Manager if you don't have them.

like image 28
dlamblin Avatar answered Sep 23 '22 10:09

dlamblin


Right click on your projects ---> properties ---> android --> select target name Google ApIs. And Clean projects and Build the projects.

And also refer this link

like image 23
rajeshwaran Avatar answered Sep 21 '22 10:09

rajeshwaran