There are already many such articles on the internet, and I am not very familiar with this one, mainly according to the previous method, the following error will occur:
Download the GIT tool msysgit: http://code.google.com/p/msysgit/, for example:
After the download, click Install and click Next until the installation is complete. After installation, create a folder where you want to store the source code, for example:
Right-click the folder and select git bash,
If you only want to download the core Android source code, you just want to complete the eclipse source code Association,
Input: git clone plugin. My network speed is quite powerful.
After cloning, the following is the source code associated with eclipse.
Open eclipse and select the Android. jar package of a project.
Right-click and select Properties to go to the following page:
Select external Folder, select the path/base/CORE/Java in the source code folder, and then select apply. OK, so the code is associated.