開始我的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