11

Because of some problem I restored my XP. but now some of my projects don't work. it giving me the following error:

"Project has no project.properties file! Edit the project properties to set one."

I dont know what to do? Plz Help.Thanks in Advance!!!!
I also backed up my .android folder from system drive.

theAlse
  • 5,577
  • 11
  • 68
  • 110
Joker
  • 537
  • 1
  • 6
  • 19

4 Answers4

35

Going to the PropertiesAndroid and setting a target won't work since setting the target won't create the project.properties file.

The fix is to:

  • Manually create an empty project.properties file in the project root folder.
  • Open the PropertiesAndroid
  • Set the desired Target
  • Refresh the project

After this the error should be gone.

Siebe
  • 942
  • 2
  • 10
  • 27
  • If you find you already have a project.properties file, just change the "target=android-xx" to the version you are using, but make sure in the used/correct android version is actually the one you enter here. – John Ashmore Dec 02 '13 at 01:57
19

You should check this.

Don't import it into Eclipse, use create new project from existing source in Eclipse

Community
  • 1
  • 1
10

Mouse over any error in your java import line then press F2, scroll down and choose Fix project setup. A project setup fixes dialogbox will appear, then press ok.

Victor Zakharov
  • 25,801
  • 18
  • 85
  • 151
ednicman
  • 109
  • 1
  • 3
0

Right click on the project, and select properties-> chose android-> set Target.

jeet
  • 29,001
  • 6
  • 52
  • 53