Java The import com.google cannot be resolved

后端 未结 5 1892
旧巷少年郎
旧巷少年郎 2021-01-05 06:49

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

相关标签:
5条回答
  • 2021-01-05 07:18

    Make sure that you have added

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

    line into the AndroidManifest.xml as a child of <application> tag

    0 讨论(0)
  • 2021-01-05 07:19

    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.

    0 讨论(0)
  • 2021-01-05 07:25

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

    And also refer this link

    0 讨论(0)
  • 2021-01-05 07:30

    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

    0 讨论(0)
  • 2021-01-05 07:35

    If selecting the particular APIs is not working try the following:

    • project->clean
    • right click on project->Android Tools-> Fix Project Properties
    0 讨论(0)
提交回复
热议问题