I had this problem when upgrading from Eclipse / Helios to Eclipse / Juno.
I installed the IDE and then imported the existing (working) project. If I then ran it in the emulator, it started, but in the original version, although the java code was for the latest version.
Then I did a cleanup (as explained in many other posts) and build (re), but then hit with a lot of errors due to the Smissing R.java file.
The problem turned out to be some “errors” in the layout XML files that were not recognized by Eclipse / Helios. In particular, in my case, there were some layout_width = 'match-parent' (and height) parameters that Juno objected to. I tried to modify them directly in the xml files, but Juno did not have this and still reported it as a "match-parent" error (although this was explicitly changed).
The only thing to do is go to the graphic layout, right-click to get the properties, and then change the Width and Height properties. Also, since they were already showing as “fill-parent”, I had to change them to “wrap-content” first and then change them to “fill-parent”.
Once I did this for all instances of "parent-parent", I could build and run the latest version in the emulator.
Doug conran
source share