如何导入没有的.classpath或文件的.project到Eclipse的Andr​​oid项目? [英] How do you import an android project with no .classpath or .project files into Eclipse?

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

问题描述

我克隆了谷歌code。使用水银一个Android项目,但没有的.classpath或。项目文件,所以日食甚至不承认code作为一个项目。

I cloned an android project from google code using Mercurial but there was no .classpath or .project files so eclipse doesn't even recognize the code as a project.

有谁知道是否有没有简单的方法来导入这个项目到Eclipse?

Does anyone know if there is there a simple way to import this project into eclipse?

(我在想,也许我可以从其他项目编辑这些文件并在将它们复制到这个项目,但我不知道有足够的了解这些文件的目的)。

(I was thinking that maybe I could edit these files from other projects and copy them over to this project but I don't know enough about the purpose of these files).

推荐答案

这是非常简单的。

您必须知道的.classpath的文件是完全一样的东西
与其他Android项目。
并且,还的.project文件除了在其项目名称相同。

You have to know that ".classpath" file is totally the same thing with other android projects. and, also ".project" file is the same except project name in it.


    从其他Android项目
  1. 复制的.classpath和的.project文件
    并粘贴到你的项目目录。

  1. Copy ".classpath" and ".project" files from other android project and, paste to to your project directory.

如果你没有任何的Andr​​oid项目,只需创建新的。
(这不是重要的包名。)

if you don't have any android project, just create new one. (it's not important package name.)

在记事本(或任何文本编辑器)打开的.project文件。

Open ".project" file on the notepad(or any text editor).

您可以找到的.project文件的第3行名的XML标记。
更改为你的真实项目的名称。

You can find "name" xml tag on the line 3 of the ".project" file. Change this to your real project name.

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

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