当选择Android的XML文件中的Eclipse运行按钮不起作用 [英] Eclipse Run button doesn't work when Android xml file is selected

查看:296
本文介绍了当选择Android的XML文件中的Eclipse运行按钮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Eclipse朱诺SR1和Android SDK工具21.1,SDK平台工具16.0.2(最新)在Mac上。

I have Eclipse Juno SR1 and Android SDK Tools 21.1, SDK Platform-tools 16.0.2 (latest) on Mac.

当我挑选了一些XML文件,并点击运行按钮,没有任何反应。我必须选择在Package Explorer一些Java文件或项目。然后,它运行。这是很烦人的,当我编辑XML文件。这是工作在previous Android的SDK工具版本。

When I have some XML file selected and hit Run button, nothing happens. I have to select some Java File or project in the Package Explorer. Then it runs. It's quite annoying when I edit XML files. It was working in previous releases of Android SDK Tools.

任何人都知道任何解决方案或解决方法吗?

Anyone knows any solution or workaround?

推荐答案

我认为它是由于最近的一些变化 ADT 21.1.0 。总之,要解决这个问题,您可以配置以下在Eclipse:

I think its due to some recent changes in ADT 21.1.0. Anyhow, to resolve this, you may configure the following in Eclipse:

<大骨节病>窗口 - > <大骨节病> preferences - > 运行/调试 - >   <大骨节病>启动 - >(下升空作战)始终启动   previously启动的应用程序

Window -> Preferences -> Run/Debug -> Launching -> (under Launch Operations) Always launch the previously launched application

如果你要打开另一个项目,那么你需要恢复这一进程,因为它总是会推出previously启动的应用程序。

In case you want to open another project, then you need to revert this process as it will always launch the previously launched application.

另外,要记住,这个问题可固定在ADT的未来版本,所以不要硬靠这个解决方案。

Also, keep in mind that this issue may be fixed in the future versions of ADT, so don't rely hard on this solution.

这篇关于当选择Android的XML文件中的Eclipse运行按钮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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