简体   繁体   English

在日食中看不到图形布局

[英]Can't See Graphical Layout in eclipse

I just update my ADT and when I try to see layout in an old project I get this message 我只是更新我的ADT,当我尝试查看旧项目中的布局时,收到此消息

"LayoutLib is too recent. Update your tool!" “ LayoutLib太新了。更新您的工具!”

what does it mean? 这是什么意思? what is LayoutLib? 什么是LayoutLib?

You'll need to upgrade your ADT Eclipse plugin to the latest version. 您需要将ADT Eclipse插件升级到最新版本。 You more than likely updated your SDK tools, but didn't update the plugin along with it. 您很有可能更新了SDK工具,但没有随同更新插件。 See these links: 请参阅以下链接:

Can't preview Android XML layout - LayoutLib is too recent. 无法预览Android XML布局-LayoutLib太新了。 Update your tool? 更新您的工具?

http://code.google.com/p/android/issues/detail?id=17369 http://code.google.com/p/android/issues/detail?id=17369

If it's still broken after you update, try this: 如果更新后它仍然损坏,请尝试以下操作:

Right click on the layout xml file in the navigator (package explorer) and choose open with > the "Android Layout Editor" from the list. 右键单击导航器(程序包浏览器)中的布局xml文件,然后从列表中选择“使用... 打开”,然后选择“ Android布局编辑器”

If it's still not working, try some of the other Editors from the list before you choose the Android Layout Editor again. 如果仍然无法使用,请尝试使用列表中的其他一些编辑器,然后再次选择Android布局编辑器。 this worked for me;-) 这对我有用;-)

My role as the marketing man was to edit the layouts of the app screens to make them prettier, using the Graphical Layout of Eclipse. 作为营销人员,我的职责是使用Eclipse的图形化布局来编辑应用程序屏幕的布局,使其更漂亮。 As a complete technical dodo, I was working under technical expert direction, but one day when he wasn't looking, I thought I could be clever.... I couldn't. 作为一个完整的技术渡渡鸟,我在技术专家的指导下工作,但是有一天他不在时,我以为我会很聪明...。 Like the others on this thread, I couldn't see the graphical layout tab and spent several hours in following the recommendations, updating various SDKs, ADTs etc etc. without remedy. 像该线程上的其他线程一样,我看不到图形布局选项卡,而是花了几个小时来遵循建议,更新各种SDK,ADT等,但没有补救措施。 The solution was simple. 解决方案很简单。 In being 'clever',I had moved the files I wanted to work on, from their position in res/layout to a new folder 'To be edited'. 作为“聪明人”,我将要处理的文件从它们在res / layout中的位置移到了一个新文件夹“待编辑”中。 I planned to complete them there and then move them back into res/layout. 我计划在那里完成它们,然后将它们移回分辨率/布局。 Unfortunately, I didn't realise that Eclipse is expecting to find layout files in res/layout (and why not?). 不幸的是,我没有意识到Eclipse期望在res / layout中找到布局文件(为什么不呢?)。 So I moved one file back into res/layout and bingo! 因此,我将一个文件移回了res / layout和bingo中! Up came the Graphical Layout tab. 出现了“图形布局”选项卡。 Recommendations: 1. Do not allow marketing people near Eclipse. 建议:1.禁止在Eclipse附近销售人员。 2. Provide an upgrade to Eclipse especially for marketing people. 2.特别是为市场人员提供Eclipse的升级。 When run, a screen appears that says..'Make lunch for the technicians..' 运行时,出现一个屏幕,上面写着“为技术人员做午饭。”

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

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