在"运行方式 - > Android的申请表]不再是我的Eclipse运行配置选项 [英] The "Run As -> Android Application" is no longer an option in my Eclipse Run Configuration

查看:205
本文介绍了在"运行方式 - > Android的申请表]不再是我的Eclipse运行配置选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个Win7的计算机上运行的Eclipse 3.7.2。我有Android SDK和AVD。一切运作良好。我有,我已经在模拟器上的下一个AVD和一个真正的Andr​​oid设备上运行Android应用程序的项目。亚洲开发银行工作的罚款以及。

I'm running Eclipse 3.7.2 on a Win7 machine. I have the Android SDK and AVD. All was working well. I have an Android App project that I've run under the emulator on an AVD and on a real Android device. ADB worked fine as well.

在某些时候,我抓住了SDK的Andr​​oid 4.0.3。然后,我不得不升级了一些更多的东西,我记不清了,也许是我的AVD。但自从这次升级没有选项来运行了我的包作为一个Android应用程序。如果我选择运行,它抛出了一个菜单,问我选择的方式来运行它和Android应用程序是不是一种选择。它必须是Java的应用程序,等等。如果我打开运行配置有我在左边栏没有Android应用程序。

At some point I grabbed SDK Android 4.0.3. Then I had to upgrade a few more things that I cannot remember, perhaps my AVD. But ever since this upgrade there is no option to run my package as an Android Application anymore. If I choose "Run" it throws up a menu asking me to select a way to run it and "Android Application" is not a choice. It has to be Java App, etc. If I open "Run Configurations" there is no "Android Application" in my left column.

我的SDK管理器仍列出的Andr​​oid 4.0和Android 4.0.3,如安装。我的AVD管理还是让我推出一个Android的虚拟设备,甚至创建一个新的。但是Eclipse并没有让我跑我的包作为一个Android应用程序。

My SDK manager still lists Android 4.0 and Android 4.0.3 as "Installed." My AVD Manager still let's me launch an Android virtual device and even create a new one. But Eclipse does not let me run my package as an Android Application.

推荐答案

请确保您更新检查到Android ADT插件除了为Eclipse中升级为AVDS,软件开发工具包,以及其他调试工具。然后确保你在你的Andr​​oid角度(Eclipse窗口的左上角),而不是其他/通用Java透视图(没有Android的特定选项)。

Make sure you check for updates to the Android ADT plug-in for Eclipse in addition to upgrades for the AVDs, SDKs, and other debug tools. Then make sure you're in your Android perspective (upper left of Eclipse window), rather than some other/generic Java perspective (no Android-specific options).

此外,您还可以在窗口中勾选>自定义视角...在Eclipse中要仔细检查所有的Andr​​oid选项(菜单,背景项目,视图,工具栏),你要启用。

Also, you can check under Window > Customize Perspective... in Eclipse to double-check that all the Android options (menus, context items, views, toolbars) you want are enabled.

更新: 您可以添加在Android工具的任何观点(我将其命名的Android)。从DDMS或Java透视图,请转至窗口>自定义视角 - DDMS。单击命令组可用性选项卡,并确保启动被选中。

UPDATE: You can add the Android tools to any perspective (I named mine "Android"). From the DDMS or Java perspective, go to Window > Customize Perspective - DDMS. Click the Command Groups Availability tab, and make sure that "Launch" is checked.

也去项目>属性>运行/调试设置,并检查是否有上市的启动配置。创建/编辑的配置并确认它有一个Android标签(通常设置为运行从你的清单默认的活动)。

Also go to Project > Properties > Run/Debug Settings and check that there is a Launch Configuration listed. Create/Edit that configuration and confirm that it has an Android tab (usually set to run the Default Activity from your Manifest).

如果不是,可能是坏了你的项目的协会 - 尝试右键单击在Project Explorer中的项目,去到Android工具(如果可用)>修复项目属性。我相信有一个Ant的工具,可以在命令行做到这一点,但你必须检查了Android /谷歌文档。

If not, there may be something wrong with your project's association - try right-clicking on your Project in Project Explorer, go to Android tools (if available) > Fix Project Properties. I believe there's an Ant tool that can do this from the command-line, but you'd have to check the Android/Google docs.

还有的可能性,一些与Eclipse安装或者你已经有了一个较新的ADT插件比您的Eclipse版本的了。 Eclipse的朱诺(V4.2)在六月底发布,而最新的ADT插件,可以寻找的东西,是不是有你的V3.7安装。

There's also the possibility that something's off with your Eclipse installation or that you've got a newer ADT plug-in than your version of Eclipse. Eclipse Juno (v4.2) released at the end of June, and the most recent ADT plug-in may be looking for something that's not there in your v3.7 install.

这篇关于在"运行方式 - > Android的申请表]不再是我的Eclipse运行配置选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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