views:

39

answers:

3

I have a problem in the manifest when i try to use this library (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> 
+1  A: 

You need to get a Google API Key. Check this link: http://code.google.com/android/add-ons/google-apis/mapkey.html

Ricardo Villamil
I had a bad key thanks !
Ams
i put the good key but still don't work
Ams
A: 

thank you for you answer but i already put the api key in the main.xml and here is my main.xml

<.?xml version="1.0" encoding="utf-8"?>

<.com.google.android.maps.MapView

xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="ABQIAAAA4fIAKDQLilD..."

/>

Ams
A: 

Finally, i found the problem. i used Google APIs as Project Build Target instead of Android 2.2.

Ams