开发者

Blank Graphical Layout?

开发者 https://www.devze.com 2023-04-02 00:52 出处:网络
I don\'t get开发者_如何转开发 this. I\'ve searched everywhere and no one\'s answers have solved this for me.

Blank Graphical Layout?

I don't get开发者_如何转开发 this. I've searched everywhere and no one's answers have solved this for me. Why does this keep happening? I can't do anything! The XML Code is still there, but it doesn't show anything in the Graphical Editor. The Palette comes up if I change it to "4in WVGA (Nexus S)" or some other configuration, but I still can't see anything and the Theme drop down menu is unselectable. All my XML documents are like that.


Just delete any custom device screen configuration you have added . It will solve the issue :)


That just happen to me and after some attempts I found the reason.

When I first opened the project in eclipse I found some errors related with the version of Java. I changed the JDK compliance to 1.6 (Project->Properties->Java Compiler) and all errors dissapear but all graphical layouts went blank.

I uncheked "Enable project specific settings" (Project->Properties->Java Compiler) and now all the graphical layouts are working.


When everything fails, close eclipse and start it all over again, it solved my problem.


I also had that problem, it happened to me when i imported my project. after some time I came to reason just change the workspace of eclipse to folder, which contains your folder. I changed workspace on opening eclipse, there can be some other way as well hope this will solve it


If it has never worked for you (or something went wrong upgrading your SDK, as in my case), you may need to install an extra package. For me the issue was fixed when I installed Android Native Development Tools under NDK Plugins (SDK version 20).


I had this problem since I switched the option Show previews in the palette. I switched to show only icons, everything is ok now.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号