The source attachment does not contain the source for the file xxx class

   (1)在Eclipse中点击"Change Attached Source…”下面的按钮

 (2)弹出SOURCE ATTACHENT Courageouration,选择External Floder…按钮,添加文件夹所在路径。

    (3)选择android源代码所在位置F:\adt-bundle-windows-x86\sdk\sources\android-20(这是我的Eclipse  SDK路径)如果没有自己下载,可以通过Android SDK Manager进行源代码下载,点击“OK”按钮,此时,便能够查看源代码了


你可能感兴趣的:(eclipse,android,sdk)