现有的Andr​​oid项目Eclipse导入 [英] Eclipse import existing android project

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

问题描述

我有这样的 http://developer.android.com/shareables/training/Animations .ZIP 示范项目,从谷歌的培训课程。当我导入它在Eclipse:导入>现有的Andr​​oid code进入工作区

I have this http://developer.android.com/shareables/training/Animations.zip demo project from google Training course. When I import it in Eclipse: Import > Existing Android Code Into Workspace

我看到同样的事情,如果我创建一个新项目:文件>新建>项目> Android项目从现有的code 也许有导入项目可供选择的方法。

I see the same thing if I create a new Project: File > New > Project > Android Project from Existing code Maybe there is alternative method to import a project.

推荐答案

Vova,

这里的交易。基本上,这个项目不具备的.classpath或.project文件。如果你想用Eclipse中打开它需要的项目文件。所以,简单地说,做到这一点:

Here's the deal. Basically, that project does not have the .classpath or .project file. If you are trying to open with Eclipse it needs the .project file. So simply put, do this:

一个。如果你已经有一个内置的项目工作区中,刚刚从那个文件夹的根。项目和.classpath文件复制到AnimationsDemo根(同一文件夹中的Andr​​oidManifest.xml是该项目) 湾只需用记事本打开该项目文件 C。在标签'名字',从现有的项目名称为AnimationsDemo改变。

a. If you already have a built project in the workspace, just copy the .project and .classpath file from that folders root into the root of AnimationsDemo (the same folder where the AndroidManifest.xml is for that project) b. Simply open the .project file with a notePad c. In the tag 'name', change from your existing project's name to AnimationsDemo.

就是这样。

请告诉我,它通过接受的答案!

Tell me if that works by accepting the answer!

-Vivek

这篇关于现有的Andr​​oid项目Eclipse导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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