开始我的android应用程序的开发,它使用Maps API,我不知道我必须为应用程序“Google API”设置特殊的TARGET。现在,添加新的基于地图的功能,我发现的,其进口改变几乎准备好的android应用程序的目标
import com.google.android.maps.MapActivity;
原因到
进口com.google不能得到解决
当然,我得到了地图布局
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:clickable="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="my_api_key"
/>
并添加了
<uses-library android:name="com.google.android.maps" />
要清单文件。
所以,如果这个错误与错误的目标相关联,我在创建项目开始时就设置好了,我可以修复它 - 在几乎准备好的应用程序中更改Target?或者这个错误是由另一件事引起的?
似乎是,我没有安装谷歌API的目标,becouse我看到Android SDK相关的唯一上榜 – 2012-02-09 07:36:52