简体   繁体   English

ADT字段未设置

[英]ADT field not being set

I'm running a simple java project on Android (using Eclipse ADT). 我在Android上运行一个简单的java项目(使用Eclipse ADT)。 During debugging I see that a value is not set correctly. 在调试过程中,我发现没有正确设置值。 I think this screenshot says it all: 我认为这个截图说明了一切:

调试屏幕截图

Any idea what can cause this? 知道是什么原因引起的吗?

Thanks a lot, Omer 非常感谢,奥梅尔

After a lot of struggles what solved the problem for me is the following: 经过多次努力后,解决问题的方法如下:

  1. Project -> clean , like Simon suggested. 项目 - >干净,像西蒙建议的那样。
  2. Restart eclipse. 重启eclipse。
  3. Fix build path (after clean , I got error in my build path not refrencing the JRE). 修复构建路径(在清理之后,我的构建路径中出现错误而不是重新呈现JRE)。
  4. Fix android target version. 修复android目标版本。 (After clean I got some error on the target). (干净后我在目标上遇到了一些错误)。
  5. Save files. 保存文件。
  6. Restart eclipse (again). 重启eclipse(再次)。

This was one of the strangest things I've encountered as a programmer, and I'm not really sure until now what the problem was and which of the above steps helped to fix it. 这是我作为程序员遇到的最奇怪的事情之一,直到现在我还不确定问题是什么以及上述哪些步骤有助于修复它。

So , I've decided to write all of the steps, hoping it might do some good to some other pour soul. 所以,我决定写下所有的步骤,希望它可以为其他一些倾注的灵魂带来一些好处。

Simon- Thanks again. 西蒙 - 再次感谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM