views:

56

answers:

2

I'm breaking into GUI programming with android, trying to compile and analyze Lunar Lander sample program. The instructions for using Eclipse say to select "Create project from existing source" but that option doesn't exist. If I select File->New->Project I can select "Java project from Existing Ant Buildfile". Using that I've tried selecting various xml files as "Ant Buildfile" but all give me the "The file selected is not a valid Ant buildfile" error.

I just want to run GUI sample projects, preferably with Eclipse. Any useful tips will be appreciated.

+1  A: 

First of all you need to install Eclipse ADT plugin, here are the instructions http://developer.android.com/guide/developing/eclipse-adt.html.

Then you can import sample code in two ways:

  1. File -> New -> Android Project, and choose "Create project from existing source"
  2. If it is already an Eclipse project, click File -> Import, after that right click on the Project and choose Make it an Android Project
ZelluX
That worked. Thanks!
James L
A: 

It should be File->New-> Android Project you need to select. Apparently, you didn't install Android SDK

Omer