导入Android项目存档到Eclipse中的问题 [英] Problem importing Android project archives into Eclipse
问题描述
我正在使用Eclipse(Helios发行版),并且Android SDK都按照开发人员进行配置.android.com的建议。我可以创建和运行新的项目没有任何问题,但我不能导入归档的项目代码示例(在网络上找到)使用导入>现有项目进入工作区。
导入zip创建一个项目,但不会将其创建为Android项目,控制台显示错误:Project没有default.properties文件!编辑项目属性设置一个。
我已经尝试进入项目属性,但一旦我点击属性树中的Android,弹出窗口出现说无法接受更改:当前显示的页面包含无效值
请参阅: http://screencast.com/t/ZmY3ZWQ4
但是,如果我在我自己的一个项目中这样做,我没有这样的错误,我可以更改Android平台/ API级别。我也可以存档我自己的项目(使用导出),并再次导入它们没有任何问题...坚持不是别人的档案!我真的很傻吗
任何帮助将非常感激!
default.properties需求是一条如下所示的行:
target = android-8
您可能很有可能将另一个项目的default.properties复制到此项目中。 (不是这样)快速重新启动Eclipse,重建工作空间,而且你也可以参加比赛。
真的很跛脚,这是需要的 - - 它应该作为导入过程的一部分,我会想。
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!
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.
这篇关于导入Android项目存档到Eclipse中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!