2010-06-24 85 views
1

我在清单中的一个问题,当我尝试使用这个库(com.google.android.maps)错误在AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     package="com.hellogooglemaps" 
     android:versionCode="1" 
     android:versionName="1.0"> 

    <application android:icon="@drawable/icon" android:label="@string/app_name"> 
     <uses-library android:name="com.google.android.maps" /> 
     <activity android:name=".HelloGoogleMaps" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

    </application> 

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

你有什么样的问题? – licorna 2010-06-24 17:32:20

+0

import com.google.android.maps.MapActivity;不会工作,即使我在清单中添加该库未被检测到!那么我不能扩展到MapActivity – Ams 2010-06-24 17:38:51

+0

[2010-06-24 13:16:15 - HelloGoogleMaps] XML文件中的错误:中止生成。 – Ams 2010-06-24 17:46:54

回答

2

最后,我发现了这个问题。我使用Google API作为Project Build Target而不是Android 2.2。

相关问题