Java – ADT field is not set

ADT field is not set… here is a solution to the problem.

ADT field is not set

I run a simple java project on Android (using Eclipse ADT).
During debugging, I see that a value is set incorrectly.
I think this screenshot says it all:

debug screen shot

Know what causes it?

Thank you so much
Omai

Solution

After a lot of effort, the following problems were solved for me:

  1. Project > clean, as Simon suggests.
  2. Restart Eclipse.
  3. Fix the build path

  4. (after clean my build path got an error without referencing the JRE).
  5. Fix Android target version. (I got some errors on the target after cleaning up).
  6. Save the file.
  7. Restart Eclipse (again).

This is one of the weirdest things I’ve ever encountered as a programmer,
Until now I wasn’t sure what the problem was and which of the above steps would help solve it.

So, I decided to write down all the steps in the hope that it would help others.

Simon – Thanks again.

Related Problems and Solutions