I use 1.0 r2 sdk and Eclipse.
On 31 май, 19:16, Mark Murphy <[email protected]> wrote:
> Mike Lanin wrote:
> > I also can't even import com.google.android.maps.MapView.
> > Layout:
> > <?xml version="1.0" encoding="utf-8"?>
> > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> > android"
> > android:id="@+id/main"
> > 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:clickable="true"
> > android:apiKey="@string/maps_key"/>
>
> > <LinearLayout android:id="@+id/zoom"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> > android:layout_alignParentBottom="true"
> > android:layout_centerHorizontal="true"/>
> > </RelativeLayout>
>
> If you are on Android 1.5, check and make sure your project has the
> proper target. If you are using Ant to build, you'll find a
> default.properties file that should contain the line:
>
> target=Google Inc.:Google APIs:3
>
> I'm not sure what the equivalent is in Eclipse.
>
> If you are targeting something else (e.g., 2), you won't have the Google
> Maps add-on.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---