您的位置:首页 > 编程语言 > Java开发

关于从github 下载的开源项目导入eclipse

2015-03-12 23:33 246 查看
今天第一次使用github,下载即时聊天的实例代码,发现不会导入eclipse,故在网上搜索两种方法如下

ps.用git bash下载完该做什么现在还不太懂

**********************************************************************************

1.

来自http://www.apkbus.com/android-163366-1-1.html

File -> Nwe -> Other -> Android Project from Existing Code 然后选择你的项目

记得勾选上Copy projects into workspace 和 Add project to working sets



2.来自http://blog.csdn.net/hil2000/article/details/8566456

1.首先在github.com上申请一个账号,比如笔者的账号为puma007

2.Eclipse需要安装egit插件,在Eclipse中选择help-》Marketplace,在search中输入egit,找到后安装即可



3.在github上找到你要导入的源码项目,比如笔者以oschina的Android客户端为例,网址:https://github.com/oschina/android-app

4. 有三种导入方式HTTP、SSHGit 、Read-Only,下面以http方式为例,单击http按钮,右边文本框会出现https://github.com/oschina/android-app.git,复制该信息



5.从Eclipse中选择File-》import-》Git-》Projects from Git



6.选择next-》选择URI



7.选择next,粘贴如下信息(注意填上您在github上申请的账号密码):



8.选择next,进入分支选择,这里选择的是master



9.选择next,配置本地项目存放路径



10.选择next



11.单击Finish,然后选择Import existing projects,然后再单击Finish即可在Eclipse中看到导入的项目了!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: