Project has no project.properties file

34,335

Solution 1

Right click on project -->Android Tools-->Fix Project Properties.....

Solution 2

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.

Solution 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:

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19

Please note: set the correct target API for your project.

Solution 4

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..

Solution 5

properties->Android lint preferences -> ignore all ->make a clean and build -> properties->Android lint prefrences -> include all

Share:
34,335
Leem.fin
Author by

Leem.fin

A newbie in software development.

Updated on March 05, 2020

Comments

  • Leem.fin
    Leem.fin about 4 years

    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?

  • Sled
    Sled almost 11 years
    Please explain your answer instead of just giving it.
  • Vidia
    Vidia over 10 years
    I realize this is an old comment, but that did not fix it for me.
  • Christine
    Christine over 10 years
    Just create a new project.properties file by copying an existing one from another project and adapting it to your needs. This is a bug in the Eclipse Android plugin, or in Eclipse, that has been around for years now.
  • matteo
    matteo about 10 years
    Right clicking on project->Android Tools->Fix Project Properties does nothing
  • David Perlman
    David Perlman over 9 years
    Hi and welcome, could you please add some explanation as to how your answer would help this issue.
  • Rben
    Rben over 9 years
    I had this happen when I mistakenly added Project.Properties to the .gitignore file.