When I import a new existing project into Eclipse, I get the following error message when attempting to execute as an Android project:
Project has no target set. Edit the project properties to set one
Any help is appreciated.
When I import a new existing project into Eclipse, I get the following error message when attempting to execute as an Android project:
Project has no target set. Edit the project properties to set one
Any help is appreciated.
From the comments of this article:
[2009-05-27 12:18:36 - DroidGap] Project has no target set. Edit the project properties to set one.
[2009-05-27 12:18:38 - DroidGap] no classfiles specified
[2009-05-27 12:18:38 - DroidGap] Conversion to Dalvik format failed with error 1
I was able to solve this on the
Projects > Properties > Androidscreen by:
- first selecting Google APIs (which was incorrect for my setup)
- and then reselecting Android 1.5 (which is correct and had previously been selected).
I was immediately able to run the emulator following this change.
Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.
It is also possible that you have a JAR file located somewhere in your project folders (I had copied the Admob JAR file into my src folder) and THEN added it as a Java Path Library. It does not show up under the Package Explorer, so you don't notice it, but it does get counted twice, causing the dreaded Dalvik error 1.