Project has no default.properties file! Edit the project properties to set one
Solution 1:
If the project already contains a file default.properties you can open that file and edit+save it (add a space, save, remove that space, save). That worked for me.
A note with the above discussion:
R.java is getting generated automatically by doing the above described process. When I go and remove it, it gets generated again. Neither is it allowing me to edited the automatically generated one. – Compuser7
With respect to the comment quoted above, R.java is indeed an automatically generated class that contains references to all the resources (in the res folder) that belong with your project.
When Eclipse rebuilds, this file is regenerated, since most application (I mean Java code) rely on the fact that there are some resources (images, layouts and string values) available. When you remove the file R.java through Eclipse, Eclipse will see this change in the project as a reason to automatically rebuild (see the options under Project) the project, regenerating the R.java file.
So DON'T try to remove R.java, because Eclipse will regenerate it as soon as you rebuild the project, which will result in a match of patience ;)
Solution 2:
Don't import it into Eclipse, use create new project from existing source in Eclipse.
Solution 3:
See project.properties in android project. In ADT 14, default.properties was renamed to project.properties.
Quote from the changelog:
default.properties which is the main project’s properties file containing information such as the build platform target and the library dependencies has been renamed project.properties.
*Note: Per the above link, if you don't have a default.properties file, likely you should upgrade your tools.
See build changes in revision 14, at the bottom under "Project Setup"
Solution 4:
When i imported a project from another pc into my workspace, there was the default.properties but no R.java. Editing the default.properties didnt generate R.java. I changed the skd version from 1.1 to 1.5 and the R.java file was generated and the project worked.