Java import com.google cannot be allowed

I am working on creating and running an Android application in Eclipse. I have successfully installed the Android bundle with google api via ADT. I downloaded a sample Google Android application for Android. very simple file. However, links to my libraries do not seem to work fine. Despite the fact that the link to the google map api is indicated in the manifest file, my application cannot resolve the link

any idea what i need to do to solve the reference problems please?

+7
source share
5 answers

You need to download google apis for a specific api level via sdk manager for Android.

enter image description here

Select this google api as the goal of the project build.

enter image description here

+14
source

In Eclipse, you should be able to customize the project class path to point to the appropriate libraries. Assuming you have them and a plugin. Contact your SDK manager if you don’t have one.

+1
source

Right click on your projects ---> properties ---> android β†’ select the target name of Google ApIs. And clean up projects and build projects.

And also link to this link

+1
source

If selecting specific APIs does not work, try the following:

  • project-> clean
  • right click on the project-> Android Tools-> Fix project properties
0
source

Make sure you add

<uses-library android:name="com.google.android.maps" /> 

in AndroidManifest.xml as a child of the <application>

0
source

All Articles