"选择无法启动,也没有最近推出的“当Eclipse的Android项目开发
我想使用Eclipse,但每次我尝试运行或调试它显示这个错误打开解压缩的Android项目:选择无法启动,也没有最近推出的
I am trying to open an unzipped Android Project using Eclipse but every time I try to run or debug it show this error: "selection cannot be launched and there are no recent launches".
所以,我看着它,并尝试创建从现有源的新项目,但有错误打开,我打开了SRC等文件夹。我也尝试过引进这也不能工作的项目。有没有运行方式的选择和更改运行配置并没有真正的帮助。我找不到任何选项来打开它作为一个Android项目。
So I looked it up and tried creating a new project from an existing source but opens with errors and I open the src etc folders. I also tried importing the project which didn't work either. There are no run as options and changing the run configuration didn't really help. I couldn't find any option to open it as an Android project.
能否请你帮我运行这个项目。
Could you please help me to run this project.
(因为我解压缩这个项目有一个_MACOSX文件夹,当我输入和我不知道如果该事项或者我应该删除该文件夹。)
(Since I unzipped this project there is a _MACOSX folder when I import and I am not sure if that matters or should I remove that folder.)
我运行Eclipse朱诺SR 2
I am running Eclipse Juno SR 2
我也有类似的问题。要解决此问题转至运行 - >运行配置...
I had a similar problem. To fix the issue go to Run-> Run Configurations...
- 如果没有(左上)创建一个新的运行配置
- 在 Android的标签的:要运行 浏览并选择项目
- 在目标选项卡的:选择总是提示来接设备(或)你可以选择自动启动
- If there isn't create a new run configuration (top left)
- Under Android tab: browse and select the project you want to run
- Under Target tab: select Always prompt to pick device (or) you can pick automatic launch.
类似的解决方案可以应用到调试转到运行 - >调试配置...
Similar solution can be applied to the Debug by going to Run-> Debug Configurations...
更新:
我知道这已经超出了问题的范围,但如果有新的开发者来回答,那么我会建议从Eclipse中切换到Android工作室。 AS是谷歌官方支持的IDE为Android的发展和更加美好的使用。
I realize this is beyond the scope of the question but if any new developers are coming to answer then I would suggest switching to Android Studio from Eclipse. AS is the official Google supported IDE for Android development and much nicer to use.