加入谷歌的API,以现有的Eclipse项目项目、API、Eclipse

2023-09-06 16:36:49 作者:Perception(感性)

我写一个Android应用程序,将使用谷歌地图,但要实现这一点,我需要谷歌的API。当我下载了Android平台的SDK(例如Android 4.0的)我没有下载谷歌API的原因不知道,我需要它来实现这一feature.However,我回去,并下载了它。我该如何将它添加到现有的项目。做了一些搜索和所有展示了如何启动一个新的项目与API但不知道如何将其添加到现有的项目。

I am writing an android app that will use Google Maps but to implement this I need the Google API. When I downloaded the android platform sdk (example android 4.0) I did not download the Google API cause did not know that I would need it to implement this feature.However, I went back and downloaded it. How do I add it to my existing project. Did some searching and all showed how to start a new project with the API but not how to add it to the existing project.

推荐答案

既然你已经下载了,你正在开发,例如安卓4.谷歌的API的版本,所有你需要做的是:

Since you have already downloaded the Google APIs for the version that you are developing for, example Android 4. all you have to do is:

右键点击您的项目 - >进入属性 - >那么Android的 - >然后选择谷歌的API,在API级别14