Android import project errors

Posted by Jsmith102 on Stack Overflow See other posts from Stack Overflow or by Jsmith102
Published on 2010-08-16T23:16:20Z Indexed on 2011/01/08 5:53 UTC
Read the original article Hit count: 203

Filed under:
|

Hey everyone, I'm a beginner, so I'll try my best to explain this problem succinctly.

Basically, a friend of mine and I were playing around with the Android SDK, editing a simple RSS reader. We could launch it in the emulator and even install it on our real devices.

Fast forward a few days, I'm trying to import the exact same code that was working a few days earlier into Eclipse on my laptop.

I tried both importing and new project from existing source. Both return these new errors that we never had originally.

I got an error that involved the auto generated "R" file, but I have solved this. Now, I'm getting 3 errors that I have never had before -

  1. The method onClick(View) of type new View.OnClickListener(){} must override a superclass method - displayed twice ( 2 different lines)

  2. The method onTabChanged(String) of type new TabHost.OnTabChangeListener(){} must override a superclass method

My question is this - What would cause the these discrepancies between importing/running on my friends computer and mine?

Also, we are both using the latest version of Java/Eclipse

Thanks in advance for any insight.

© Stack Overflow or respective owner

Related posts about java

Related posts about android