"Selection cannot be launched and there are no recent launches” when Eclipse for Android Project Dev

android, eclipse

Solution

I am running Eclipse Juno SR 2

I had a similar problem. To fix the issue go to Run-> Run Configurations...

- 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...

Update:

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.

Problem

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". 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. (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.)

Original source