Eclipse的错误,"选择无法启动,并且没有最近推出的" [英] Eclipse error, "The selection cannot be launched, and there are no recent launches"

查看:543
本文介绍了Eclipse的错误,"选择无法启动,并且没有最近推出的"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始的Andr​​oid程序,以便下载Eclipse和开始了。

I have just started Android programming so downloaded Eclipse and got started.

创建下面从这里的教程我的第一个项目:<一href="http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine">http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine

Created my first project following tutorial from here: http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine

当我是在下一堂课运行从这里应用程序:<一href="http://developer.android.com/training/basics/firstapp/running-app.html">http://developer.android.com/training/basics/firstapp/running-app.html

And when I was on next lesson to run that application from here: http://developer.android.com/training/basics/firstapp/running-app.html

我照他们说。通过USB连接我的设备,启用USB调试过,但是当我点击运行Eclipse的,得到了​​上面的错误。

I did as they said. Connected my device via USB, enabled USB debugging too, but when I clicked Run on eclipse, got the above error.

我做了什么错?

推荐答案

Eclipse可以不工作了,你想要什么运行,因为你已经不是之前运行任何东西,它不能尝试重新运行,要么。

Eclipse can't work out what you want to run and since you've not run anything before, it can't try re-running that either.

,单击下拉旁边并选择​​运行配置。在Android的选项卡,确保它被设置为您的项目。在目标选项卡,设置的复选框,并选择适当的目标设备。然后单击运行。保持眼睛在Eclipse中的控制台选项卡上 - 那会让你知道发生了什么事情。一旦你有你的运行配置设置,你可以绿色的运行按钮,下一次的打击。

Instead of clicking the green 'run' button, click the dropdown next to it and chose Run Configurations. On the Android tab, make sure it's set to your project. In the Target tab, set the tick box and options as appropriate to target your device. Then click Run. Keep an eye on your Console tab in Eclipse - that'll let you know what's going on. Once you've got your run configuration set, you can just hit the green 'run' button next time.

有时候让一切跟你的设备是有问题的开始。考虑使用AVD(即模拟器)作为替代,至少要开始,如果你有问题。您可以轻松地从菜单窗口创建一个 - >在Eclipse Android虚拟设备管理器

Sometimes getting everything to talk to your device can be problematic to begin with. Consider using an AVD (i.e. an emulator) as alternative, at least to begin with if you have problems. You can easily create one from the menu Window -> Android Virtual Device Manager within Eclipse.

要查看的项目正在安装的进展,并启动您的设备上,检查控制台。 这是在Eclipse的面板标签的问题/的Javadoc /声明/控制台/ LogCat中等等。它可以被最小化 - 为您在右下角的托盘。或者只是使用窗口/显示查看/控制台从菜单中,使其走到了前面。有两种游戏机,Android和DDMS - 有一个下拉通过它的图标,你可以切换

To view the progress of your project being installed and started on your device, check the console. It's a panel within Eclipse with the tabs Problems/Javadoc/Declaration/Console/LogCat etc. It may be minimised - check the tray in the bottom right. Or just use Window/Show View/Console from the menu to make it come to the front. There are two consoles, Android and DDMS - there is a dropdown by its icon where you can switch.

这篇关于Eclipse的错误,&QUOT;选择无法启动,并且没有最近推出的&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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