从github导入ADT Eclipse中的android项目 [英] Import android project in ADT Eclipse from github

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

问题描述

我试图将一个Android项目从github导入到ADT Eclipse中,但是当我克隆时,它没有在存储库中找到任何项目。该回购显然是一个Android应用程序项目(从源代码),但没有项目被导入。我的步骤如下:


  1. 在软件包资源管理器中,右键单击并选择导入


  2. 从Git导入项目。


  3. 输入uri: https://github.com/moagrius/MapViewDemo


  4. 只需导入master。 p>


  5. 克隆完成后,将显示以下对话框:



  1. 选择导入现有项目时,下面的对话框显示:



为什么没有项目被发现导入?如何将项目导入eclipse?



感谢您的帮助!

解决方案

eclipse项目文件(.project和.classpath)不是github存储库的一部分,因此您不能将其导入到Eclipse中。



最简单的方式修复这可能是自己创建一个新的Android项目,然后将文件从github repo复制到它。


I'm trying to import an android project from github into ADT Eclipse but it doesn't find any projects in the repository when I clone it. The repo is clearly an android application project (from looking at the source) but no project is found to import. My steps are as follows:

  1. In "Package explorer" right-click and select "Import"

  2. Import project from Git.

  3. Enter uri: https://github.com/moagrius/MapViewDemo

  4. Just import master.

  5. When cloning is done the following dialog shows up:

  1. When choosing "Import existing projects" the below dialog shows:

Why are no projects found to import!? How can I import the projects into eclipse?

Thanks for help!

解决方案

The eclipse project files (.project and .classpath) are not part of the github repository so you can't just import it into Eclipse.

Easiest way to fix that is probably to create a new Android project yourself and then copy the files from the github repo into it.

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

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