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?
Sometime the 'Fix Project properties...' is not useful. I suggest that you can open that file and edit+save it, then delete the 'project.properties' file. At last you can create a new 'project.properties' file and paste the content of the old 'project.properties' file's content.
That worked for me.
Generally Android Tools-->Fix Project Properties should work. but it didn't solve my problem. I had just delete project from from workspace and import again second time no problem..
i have same issue, simple way is
RightClick project file--> new --> file -->filename type file name as project.properties and --> finish --> inside project.propeties file type this target=android-17(your virsion of android)
then all errors go away
Check file encoding. Apparently UTF-BOM is way too hard for whatever part of Eclipse-SDK is responsible for handling that project.properties file.