简体   繁体   English

如何在Eclipse项目中使用git代码?

[英]How can i use git codes in my eclipse project?

I'm fairly new to android development and I have a super noob question about eclipse and git projects . 我是android开发的新手,我对eclipse和git项目有一个超级的问题。 Well my problem is that I have imported a git project into eclipse but i dont know how to use it . 好吧,我的问题是我已经将git项目导入了eclipse,但是我不知道如何使用它。 this is the project I've imported : https://github.com/MikeOrtiz/TouchImageView . 这是我导入的项目: https : //github.com/MikeOrtiz/TouchImageView I have no idea how to use the code though . 我不知道如何使用代码。

even though i did follow the instructions mentioned in the readme file , I couldnt get this thing to work . 即使我确实按照自述文件中提到的说明进行操作,也无法正常工作。 this is the instruction : 这是指令:


Usage: 用法:

Place TouchImageView.java in your project. 将TouchImageView.java放在您的项目中。 It can then be used the same as ImageView. 然后可以与ImageView一样使用。 Example: 例:

TouchImageView img = (TouchImageView) findViewById(R.id.img); TouchImageView img =(TouchImageView)findViewById(R.id.img);

I did this but it didn't work . 我做了这个,但是没用。 Sorry if my questions seems stupid , I'm a newbie :D 抱歉,如果我的问题看起来很愚蠢,我是新手:D

You can add EGit plugin to your eclipse IDE then get your github code into your eclipse using this plugin.. 您可以将EGit插件添加到eclipse IDE中,然后使用此插件将github代码添加到eclipse中。

For More Refrence :

http://www.vogella.com/tutorials/EclipseGit/article.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM