1

当我尝试使用这个库(com.google.android.maps)时,清单中有问题

<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> 
4

2 回答 2

2

最后,我发现了问题。我使用 Google APIs 作为项目构建目标而不是 Android 2.2。

于 2010-06-24T18:34:48.170 回答
1

您需要获取 Google API 密钥。检查此链接:http ://code.google.com/android/add-ons/google-apis/mapkey.html

于 2010-06-24T17:47:04.220 回答