I upgrade the SDK, the previous project all XML in graphical layout can not preview, feel a little puzzled, on the web search, online gave two kinds of solutions:
Scenario One: Go to the SDK directory and delete the Temp folder and turn off eclipse to reopen it.
Processing result: I did it in accordance with this statement, which is ineffective.
Scenario two: What to look for in the Eclipse\plugins directory under the installation directory of Eclipse 0.8 of a jar package, I have to wade through the tour without this thing ah?
Processing the result: or invalid.
Finally, I think there is something in this is I did not find out, so I east point a bit, point of origin, it happened to switch version of the place, and then I switched to the previous version, the problem solved , haha, the problem of trouble inadvertently be resolved, feel good accident happy, supporting:
Figure one is the version has not changed before:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/47/CE/wKiom1P_4NTj7R0oAABPsEkpgRo864.png "title=" Figure 1. PNG "alt=" Wkiom1p_4ntj7r0oaabpsekpgro864.png "/>
Figure 2 is after the version change:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/47/D0/wKioL1P_4mnhihulAACvmwSN0Wo191.png "title=" Figure 2. PNG "alt=" Wkiol1p_4mnhihulaacvmwsn0wo191.png "/>
Note: Please look at the place in the red box to compare , generally after we update the SDK, Eclipse XML will default to the latest version, when the version is higher than we created the XML version, the XML can not be displayed, after my comparison, It's easy to solve the problem.
In addition, when we download some code on the Internet, sometimes we will encounter the situation can not be displayed, at this time we look at the project properties in the target=android-? What version is it? then in the XML graphical layout of the display version of the place (shown in the red circled in the place) to switch to this version , no this version of their own can be with the new SDK to the corresponding, so the problem is easily solved.
Finally, I found a problem with this issue related to your SDK version when you created the XML, If you create XML when your current SDK version is from 2.2 to 4.0, then others use as long as in this range can be loaded out of XML diagram, if others are 4.1 that will not load, then just change to 2.2 to 4.0 this range can be, So the conclusion is that the loading of XML is very much related to the version range of your current SDK. sometimes in the online code you do not have to switch to his marked version, may be marked version of the higher version is also possible, it depends on the creator of the current version, you just try to know, hey, said so much, just to provide you with some help, If this method can not solve the people please continue to explore and leave a message, we discuss together, thank you!
This article is from the "Suck on self-renewal" blog, please be sure to keep this source http://wyong.blog.51cto.com/1115465/1546406
After Android Upgrade SDK, XML graphical layout cannot preview the resolution