问题导入Android项目档案到Eclipse [英] Problem importing Android project archives into Eclipse

查看:187
本文介绍了问题导入Android项目档案到Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的道歉,如果这是一个愚蠢的新手问题...

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

我使用的Eclipse(太阳神释放),并已在Android SDK中的所有配置为按照developer.android.com建议。我可以通过导入>现有项目进入工作区创建并没有任何问题,运行新的项目,但我无法导入存档的项目code样本(在网络等找到)。

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.

导入一个zip创建一个项目,但它没有作为一个Android项目创建和控制台显示错误:。项目没有default.properties文件中编辑项目属性来设立一个

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"

请参阅: http://screencast.com/t/ZmY3ZWQ4

但是,如果我这样做对我自己的项目我有没有这样的错误,我能够改变的事情,如Android平台/ API级别。我还能够存档自己的项目(使用export),再导入没有任何问题......螺母没有其他人的档案!我是不是很笨?

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?

任何帮助将是非常美联社preciated!

Any help would be really appreciated!

推荐答案

所有default.properties需要的是这样一行基线:

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

目标=机器人-8

您可以最有可能的另一个项目default.properties复制到该项目中。 A(未所谓)的Eclipse快​​速重新启动,工作区的重建,而你去比赛。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆