导入android项目的问题:How to import existing Android project into Eclipse

本文讨论了导入Android项目到Eclipse时遇到的各种问题,包括API缺失、项目配置错误等,并提供了几种可能的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

导入下载的android项目,很多红叉,报缺少api,下面的链接里讨论到。

http://stackoverflow.com/questions/3311474/problem-importing-android-project-archives-into-eclipse

 

 

这个帖子也提到同样的问题

http://groups.google.com/group/supercollider-android-developers/browse_thread/thread/2fe044259902e243

 

 

第二个帖子,对这个问题现象英文描述详细贴切。

 

Hey,

i was just trying to build the project, but something in eclipse seems
to be screwed. at first i thought my eclipse 3.5 might be too old, so
i updated to 3.6, but the error is the same. i imported SuperCollider-
Android into my workspace, but it opens up with all the android API
missing, and when i go to properties -> android, i get an error

"The currently displayed page contains invalid values".

i can select "Builders" and then "Android" again, and i get the radio
buttons for the API level, but eclipse won't remember what i do here,
even if i hit apply or ok.

probably easiest is to create the .project anew? how difficult would
it be to add an ant build.xml script so it could be build from the
command-line?

best, -sciss-

 

 

解决总结:

 1、Delete Eclipse specific files and folders (eg. “.settings”, “.project” “.metadata” etc.) from your Android project folder.

2、Did you go to "File > Import existing project"? The best way is actually to go "File > New > Project > Android project" and then in the new-project-wizard choose "from existing source".

3、待项目放到其他随意路径,不要放到workspace下,否则报

Invalid project description
------>detail: ->>> xxxx(project path) overlaps the location of another project: 'xxxx'

 

why?i don't know now.

 

如果项目还是想建在workspace下,在workspace下新建一个android项目,把下载项目的相关源文件考过去,it works!

 

http://stackoverflow.com/questions/5784652/eclipse-invalid-project-description-when-creating-new-project-from-existing-sou

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值