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

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

问题描述

我试图导入从GitHub上的Andr​​oid项目进入ADT的Eclipse,但没有找到存储库中的任何项目时,我克隆它。回购显然是一个Android应用程序项目(从查看源),但没有项目被发现进口。我的步骤如下:

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. 在包资源管理器单击鼠标右键,选择导入

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

从Git的导入项目。

输入网址: https://github.com/moagrius/MapViewDemo

只需导入主。

在克隆完成下面的对话框显示出来:

When cloning is done the following dialog shows up:

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

为什么没有发现进口的项目!?如何导入项目到Eclipse?

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

感谢您的帮助!

推荐答案

Eclipse项目文件(的.project和的.classpath)不是GitHub的资源库,所以你不能仅仅将其导入到Eclipse中的一部分。

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

最容易解决这个问题的方法可能是自己创建一个新的Andr​​oid项目,然后从GitHub库中的文件复制到它。

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上导入Android项目在ADT的Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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