谷歌地图(com.google.android.maps)崩溃了应用程序

时间:2011-06-09 23:53:50

标签: android google-maps crash

我一直在尝试使用Android中的谷歌地图。 但应用程序崩溃了。 :(

这是我的xml代码:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
   <com.google.android.maps.MapView 
    android:id="@+id/mapView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:apiKey="0E8T-qQndWDg8lEScymvQro3kJ1bGlSKLolDE3Q"
    />            
 </LinearLayout>

我已经包括(之后):

<uses-permission android:name="android.permission.INTERNET" />

以及(之后):

 <uses-library android:name="com.google.android.maps" />

我无法找到任何错误。

1 个答案:

答案 0 :(得分:0)

只需要扩展MapActivity而不是Activity。