从建筑.xml文件prevent的Eclipse [英] Prevent Eclipse from building .xml files

查看:123
本文介绍了从建筑.xml文件prevent的Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近有一个完整的新安装我(的archlinux)系统。出于这个原因我安装了最新的Eclipse(JUNO 4.2.1和我后悔)与最新的ADT插件(SDK启21)一起。

I recently had a complete new install of my (archlinux) System. For that reason I installed the latest Eclipse (JUNO 4.2.1 and I regret it) along with the latest ADT Plugin(SDK rev 21).

现在我观察,我以前曾经有过但此后被修正了一个错误:当我在Java透视是,编辑XML文件,并点击绿色的播放按钮来推动新的$ C $我的手机上C,Eclipse启动构建特定的XML文件,而不是建立这个xml文件所属的项目。我得到一个'XMLfilename.xml.out文件,该文件无法打开。如果我要生成项目,我必须delte了XMLFilename.xml.out'文件,切换到一个java文件,并就重新点击为了使其工作发挥按钮。

Now I'm observing a bug which I have had before but was fixed since then: When I'm in the Java Perspective, editing an xml file and click on the green "play" Button to push the new code on my phone, Eclipse starts building that particular XML file instead of building the project this xml file belongs to. I get an 'XMLfilename.xml.out" file which I cannot open. If I want to build the project, I have to delte the 'XMLFilename.xml.out' file, switch to a java file and re-click on that 'play' button in order to make it work.

这可以被看作是错误或在我身边的一些错误配置?如果它是一个Bug,谁负责呢?日食JUNO,ADT或其他前卫?是一家能够解决这个问题?

Can this be considered as Bug or some misconfiguration on my side? And If it is a Bug, who is responsible for it? Eclipse JUNO, ADT or another prog? Is one able to fix it?

推荐答案

当你安装一些XML的插件在eclipse出现这种情况。不需要的插件XML开发Android应用程序,因为ADT本身自带的工具集与XML文件(即布局编辑器等)的工作。如果您不需要为其他项目的XML插件,您可以将其删除。 Eclipse的识别XML文件作为你的Andr​​oid项目的一部分,直接启动Android项目(而不是XML解析器,检查XML文件)。

This occurs when you install some of the xml-plugins in eclipse. The xml plugins are not needed to develop android apps since the ADT comes with its own set of tools to work with xml files (i.e. Layout editor, etc). If you do not need those xml plugins for other projects you can remove them. Eclipse recognizes the xml files as part of your android project and directly starts the android project (instead of the xml-parser which checks the xml file).

删除文件xml.out然后关闭XML文件或只需切换到Java文件,然后运行该项目配置您想运行。

刚刚尝试这样做(这是更好的选择,为我工作) -

Just try doing this (which is better option and worked for me)-

窗口> preferences>启动>启动操作>选择始终启动previously启动的应用程序

这篇关于从建筑.xml文件prevent的Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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