0

So I'm trying to import an existing project to eclipse and when I do I get the following error. The main folder of the project in the package explorer has a red exclamation mark (!) next to it and console says the same error 3 times:

[2013-07-10 14:23:39 - Myproject1] Project has no target set. Edit the project properties to set one.
[2013-07-10 14:23:39 - Myproject1] Project has no target set. Edit the project properties to set one.
[2013-07-10 14:23:39 - Myproject1] Project has no target set. Edit the project properties to set one.

I did my research on this error and found a bunch of stuff on this website already but nothing helps. People are mostly getting this error when they try to execute the imported project, not as soon as they import it. I also tried setting the "target set" in the project properties, as the error tells me to, but I can't find where to set the "target set" anywhere in the properties.

One more thing worth mentioning also, if I open the src folder and try to open any of the *.java, everything is blank, the "code" opens but it's blank. Any help would be greatly appreciated!

Guy
  • 6,414
  • 19
  • 66
  • 136

4 Answers4

1

The file 'project.properties' is missing. It must reside in the root-folder of your project. ( Where the AndroidManifest.xml is located ) You should create a new android-project and import the sources and resources OR create it manually.

Example content for project.properties:

# Project target. target=android-17

Greetings Christopher

Christopher Stock
  • 1,399
  • 15
  • 18
  • This question has been answered before :p http://stackoverflow.com/questions/3857576/project-has-no-default-properties-file-edit-the-project-properties-to-set-one – Christopher Stock Jul 10 '13 at 12:40
  • Thank you! I didn't notice that when I try to open prject.properties it throws an error – Guy Jul 10 '13 at 12:50
0

set android target version on your project manifest xml file or eclipse ->right click project click properties->select android tab->check latest android version on the list like below screen shot:

enter image description here

after click ok button will apply wait some seconds after your issue will be solved!

Stack Overflow User
  • 4,052
  • 6
  • 29
  • 47
0

you should try fixing project properties:

rightClick on Project -> Android Tools -> Fix Project Properties.

That resolved my issue!

imthegiga
  • 1,126
  • 8
  • 13
0

You are probably importing your project folder on your workspace. In my case, i got that same error, so i just move the project folder to "C:" and tryed to import again. And bingo!

gmartinsnull
  • 1,075
  • 1
  • 12
  • 11