Eclipse的 - 禁用XML文件编制,而在Java透视图 [英] Eclipse - Disabling compiling of XML files while in Java perspective

查看:132
本文介绍了Eclipse的 - 禁用XML文件编制,而在Java透视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在Eclipse编译Android的东西,我永远恼火,当我点击运行按钮,编译和运行,如果我在一个.java文件一切都很正常,如果即时通讯在.xml文件(对于Android的布局)它编译XML文件,并生成一个_out.xml文件,它搞砸了这个项目,使我必须先删除掉文件,然后清理我的项目文件。

When compiling android stuff in eclipse, I am forever annoyed when I hit the "Run" button to compile and run, if I am in a .java file everything works great if im in an .xml file (for android layouts) it compiles the xml file and produces an _out.xml file which screws up the project so that I first have to delete the "out" file then clean my project files.

有关如何禁用XML文件的编制有快捷的答案?

Any quick answer on how to disable the compiling of xml files?

推荐答案

萨穆埃尔已经讲了一个解决方案。我preFER是使用始终运行的最后一个项目的设置是什么。

Samuel has told already a solution. What I prefer is to use the "always run the last project" setting.

去窗口 - > preferences - >运行/调试 - >启动并比激活标签底部的选项:总是启动previously启动的应用程序

Go to window -> preferences -> Run/Debug -> Launching and than activate the option on the bottom labeled: "Always launch the previously launched application"

如果您有多个项目,有时你会拥有你开始你不打算启动一个项目的问题。这将只发生一次,因为在启动合适的项目后,你会坚持到底,直到您切换到下一个项目(这不应该在一个工作日经常发生)。

If you have multiple projects you will sometimes have the issue that you start a project you didn't meant to start. That will occur only once, because after starting the right project, you will stick to that until you switch to the next project (which shouldn't happen very often on a working day).

它不是一个完美的解决方案,但$ P $与pvents所提到的问题,在我的经验,最低/最小(什么合适的词?)的副作用。

Its not a perfect solution, but prevents the mentioned issue with, in my experience, the lowest/smallest (whats the right term?) side effects.

这篇关于Eclipse的 - 禁用XML文件编制,而在Java透视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆