Wow, thanks Michael. That indeed did fix the problem. I knew it had to be something simple. You are right. I am building with Java 6 on Windows and apparently Java 5 (didn't pay attention) here.
On the other hand, I'm now sure that I've never seen this problem before. I am so grateful! Despite my vast stores of patience, fooling around with this was vexing to me, on top of the low-level frustrations of learning a new platform. On Mar 18, 8:18 am, Michael MacDonald <[email protected]> wrote: > On 03/18/10 11:11, Brion Emde wrote: > > > > > I just got a new computer, a Mac-mini, and I'm working on getting my > > Android development going on the new machine. I'm migrating from > > Vista, where my application currently runs correctly. > > > It does not build correctly on OSX. I can create a new project, like > > HelloAndroid from the samples and run it. When I tried to do this with > > my real project, first I got an error saying that my project > > overlapped an existing project of the same name (pretty funny on a > > brand new computer with almost nothing on it and surely no other > > Eclipse projects with my project's name). > > > I fixed that by moving things around, but the software still won't > > build. > > > I've seen this problem before, but can't remember what I did to fix it > > then. > > > Basically, it's complaining about @Override, in functions that > > override existing system classes. And example is in my adapter, > > derived from BaseAdapter, it complains about getCount() and > > getItem(int pos) and more, saying "The method getCount() must override > > a superclass method" > > > I've got 5 out of 10 files that won't compile for similar reasons. One > > implements OnClickListener, but Eclipse complains about the @Override > > on the onClick() function. > > > I repeat: this code compiles and runs on Windows Vista. I have a Vista > > laptop sitting right over there that can build and run this exact > > software. > > > Any ideas? > > @Override works differently in Java 5 and 6 (?!) > > In Java 5, it can't be used when implementing an interface-- in Java 6 > it can. You probably were building with Java 6 on Vista, while AFAIK > OS/X still only supports Java 5. -- 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

