不错的博客:http://blog.youkuaiyun.com/wwj_748/article/details/9496933
右键项目 –>【Properties】->【Java Build Path】->【Android4.2.2】->【android.jar】->【Source attachment】->【Edit】->【External Location】->【External Folder】->【选择sdk的sources目录下的你想关联的目录】
没有关联之前是这样的
关联代码之后是这样的