32
votes

My apologies if this is a stupid newbie question...

I'm using Eclipse (Helios release) and have the Android SDK all configured as per the developer.android.com recommendations. I can create and run new projects without any problem but I can't import archived project code samples (found on the web etc.) using Import > Existing Projects Into Workspace.

Importing a zip creates a project but it doesn't create it as an Android project and the console displays the error: "Project has no default.properties file! Edit the project properties to set one."

I've tried going into the project Properties but as soon as I click on 'Android' in the properties tree a pop-up appears saying "Could Not Accept Changes: The currently displayed page contains invalid values"

See: http://screencast.com/t/ZmY3ZWQ4

But if I do this on one of my own projects I have no such error, and I'm able to change things such as the Android Platform/API level. I'm also able to archive my own projects (using export) and import them again without any problems... nut not other people's archives! Am I being really stupid?

Any help would be really appreciated!

7
I have the same problem -- for example, I can't import the projects from code.google.com/p/apps-for-android -- I get the same set of errors.Josh Bleecher Snyder

7 Answers

51
votes

All the baseline default.properties needs is a line like:

target=android-8

You can most likely copy another projects' default.properties into this project. A (not-so-)quick restart of Eclipse, a rebuilding of the workspace, and you're off to the races.

It's really lame that this is needed -- it should happen as part of the import process, I would think.

7
votes

just change your

project.properties file to default.properties 

and restart your eclipse

it's done..

3
votes

Right click on the project in navigator window, go to android tools and click on fix project properties. It might work, as it did for me ;-)

1
votes

You can look at this section, it works for me: Project has no default.properties file!

0
votes

If you want to change the library of your project, do that :
- right click on the project name
- Build Path
- Configure build path
- click Android on the left, and select the library you need.

0
votes

I had the same problem. What you are trying is little difficult.Just unzip the files ,copy res and src folders to ur existing project.The problem is the files starting with "." which have settings for their android and eclipse. So you need to modify all that,so simply create new project or to ur existing one copy res, src and AndroidManifest.xml file.
It worked for me .

0
votes

In the project right click Android Tools -> Fix Project Properties