Adding Android Java Source to Eclipse

  1. Install Git for Windows:
  2. Open up Git Bash and execute the following command to get the source (master branch) git clone git:// android-api
  3. Open up Eclipse.
  4. Properties > Java Build Path > Libraries
  5. Expand Android x.x
  6. Expand android.jar
  7. Click Source Attachment > Edit
  8. Click External Folder
  9. Point to: [source-download-location]\android-api\core\java\
That's it! References: