Android 实施基于位置的服务

Android 实施基于位置的服务,android,Android,我试图实现这一点,但我在这些行中得到错误 import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; import c

我试图实现这一点,但我在这些行中得到错误

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.MyLocationOverlay;
import com.google.android.maps.Overlay;
在whereremyFriendsMap.java中

还有什么像罐子一样的东西我需要补充吗
谢谢

您必须将项目构建目标设置为目标API级别的Google API版本。您很可能已将其设置为Android API。

在同一教程中,您是否拥有此处提到的所有内容

Getting started is pretty well-worn ground. Pull down the latest Android SDK and JDK (5 or newer). Download and install Eclipse for Java developers (3.2 or newer) and the ADT Eclipse plugin and you're set. There's more detail at StackOverflow, on the Android code site, and the Android support forums.

我已经从API级别3检查到级别10,但它不起作用(:但是你在Eclipse中下载了Google Inc的Google API包了吗?它们不是默认的。你应该看到每个API级别都有一个Android和一个Google API行,你需要选择Google API…它包含地图库。请你指导我如何下载Google Inc的Google API包的教程,好吗n Eclipse?在Eclipse中,窗口>Android SDK和AVD管理器。选择左侧的可用软件包。我相信它在第三方加载项下,然后你选择Google Inc。我完全忘记了,我的看起来不一样,因为我已经安装了它,但只要环顾四周,你就会发现它。我已经检查了API级别3到级别10,但它没有不行(: