1
我得到這個類Android應用程序與GoogleMap的:
public class GoogleMapActivity extends MapActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
}
}
,我在編輯得到一個錯誤 - 「MapActivity不能resolvet到類型」。這個tutorial說我必須擴展這個特定的類。
我提到,我在清單指定我需要谷歌地圖圖書館這樣
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<uses-library android:name="com.google.android.maps"/>
從屬性 - > Android的 –
哦,選擇谷歌API的lib,有關請確保您已創建的項目。我祈禱,注意AVD(所以它是一個基於API的)。我不確定我是如何以這種方式創建項目的。我現在可以以某種方式轉換它嗎? :) 謝謝! – Michael
對不起,這是一個愚蠢的問題。我已經這樣做了。 – Michael