I am developing Android app in Eclipse.
Currently, eclipse complains:
"Project has no project.properties file! Edit the project properties to set one."
But I do have project.properties
file under my project root folder. Why it complains?
This problem causes several of the resources in R.java
can not be resolved in Activity.
How to get rid of this problem?
properties->Android lint preferences -> ignore all ->make a clean and build -> properties->Android lint prefrences -> include all
Right click project -> Properties -> Java Build path -> Order and Export -> check the checkbox of Andorid 4.3.
The accepted answer may had the problem solved a few years ago but it doesn't work anymore with the more recent tools.
This is a known bug on Eclipse.
The only way to solve this problem is by creating again a
project.properties
file, which no one posted how it looks inside so I'll be posting this as an answer:If it happens after importing from archive, I suggest to remove the project for the workspace and import it again. That was working for me.
In case, you are importing new project from file folder, import this project as general project, not as Android project (I can not tell you why). After import, edit
project.properties
file, just add some character, then save the file. Now Eclipse recognizesproject.properties
file. Repair it(remove added character) and now the project should work fine.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.