Eclipse does not recognize com.google.android.maps

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Eclipse does not recognize com.google.android.maps

Postby kthuis » Mon Jul 04, 2011 1:56 pm

Hi,

Eclipse does not recognize the com.google.android.maps library. I'd make an AndroidManifest.xml which contains the following lines:
Code: Select all
<application android:icon="*" android:label="*">
    <uses-library android:name="com.google.android.maps" />
    <uses-permission android:name="android.permission.INTERNET" />
</application>


I created a layout which contains the following xml:
Code: Select all
<?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="**********************************************"
/>


In Eclipse I now try to import 'com.google.android.maps.MapActivity', but it does not know the library.

I'm not using an emulator, but a Samsung Nexus S to run the application on. Is there anyone who can help me with this problem?

PS. Sorry for my bad English ;)
kthuis
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jul 04, 2011 1:46 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests