A "cannot be resolved" error for those classes usually means you have the wrong build target set for the project. Right-click on the project in Eclipse, choose the Properties option, then the Android option from the list on the left of the Properties dialog, then make sure the checked build target says "Google APIs". The "Android 1.x" build targets will not work.
You can see instructions about using the Maps API on Android here: http://code.google.com/android/add-ons/google-apis/maps-overview.html Watch out searching for the term GWT. In my experience that refers to Google Web Toolkit, which has nothing to do with Android. On Oct 13, 4:24 pm, Kent Borg <kentb...@borg.org> wrote: > Newbie here... > > I have used Eclipse to get a HelloAndroid to work and now I am trying to > get a most basic MapActivity to work. In my source file I have a: > > import com.google.android.maps.MapActivity; > > And Eclipse complains "Import com.google cannot be resolved". > > OK, so I Google around and it seems I need to edit my .gwt.xml file, and > I don't seem to have one. > > Another hit suggests: > > > Go to your Eclipse preferences, then Google -> GWT on the side bar, > > and then > > add another entry to the list box pointed to your GWT 1.4 SDK. [...] > > Except I can't find that in the Eclipse preferences. > > I think another hit said to right click on the project and do something > with a "Google" sub-menu, but I don't have that either. > > I think I have something basic missing with my Eclipse setup. I am > running "Eclipse IDE for Java Developers Build id: 20090920-1017", for > plugins I have among the listed "Android Development Toolkit" > 0.9.3v200909031112-12945. > > Have I given enough information for someone to explain where I went wrong? > > Thanks, > > -kb, the Kent who wants to get out of the mud. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---