Github android客户端源代码分析之一:环境搭建


1、下载相应的包及项目,参考https://github.com/github/android/wiki/Building-From-Eclipse

2、若需查看某些包的源文件或者javadoc,则(以org.eclipse.egit.github.core-2.1.5.jar为例)

(1)下载其源代码https://github.com/lujinhong/egit-github/tree/master/org.eclipse.egit.github.core,并创建项目。

(2)删除libs文件夹中的org.eclipse.egit.github.core-2.1.5.jar,并将之从build path中删除

(3)在build path中添加第一步的项目。

3、为android-support-v4.jar添加源文件


参考:http://blog.csdn.net/jediael_lu/article/details/15735799  如何在Eclipse中查看Android API源码以及support包源码

(1)由于项目中的android-support-v4.jar只是引用了其它项目的android-support-v4.jar,所以在项目ActionBarSherkLock的libs目录下添加文件

android-support-v4.jar.properties,文件内容如下:


src = E:\\Y DeveloperSoftware\\ADT Bundle 64bit\\adt-bundle-windows-x86_64-20130917\\sdk\\extras\\android\\support\\v4\\src



(2)其实想查看任何源代码均可使用此方法,如第2点可用以下方法代替:



posted @ 2013-11-12 22:47  lujinhong  阅读(183)  评论(0编辑  收藏  举报