一、找到项目中的android.jar,右键→properties
二、选择External Folder来关联到外部文件夹
三、选择%存放源码的目录%/base/core/java→ok。这样就完成了关联源码的操作。
当然,我们知道如何关联源码还是不够的,源码在哪里是最重要的问题.
我给大家一个网址
https://android.googlesource.com/
这里的下载可以用git.进行下载.
To clone one of these repositories, install git, and run:
git clone https://android.googlesource.com/name
For convenience, the clone URL is available as the name link below.
下载下来后,关联上去就可以了.
附上git的下载地址:
http://download.youkuaiyun.com/detail/www_tobesky_com/4319602