在 Eclipse 中一般的 jar 包在(F3 或 Ctrl + Click) 进到它的 Class 时,如果没有关联上源代码会有一个按钮让你关联下就可以查看源代码。可是在 Eclipse 中的 android.jar 中的类,却只会提示
Source not found
The JAR of this class file belongs to container 'Android 1.6' which does not allow modifications to source attachments on its entries.
在 D:\android-sdk_r05-windows\platforms\android-8 目录下建立 sources 文件夹,从 http://www.devfrustrated.com/devBlog/browsing-android-source-code-in-eclipse/ 这里下载需要的资源,解压后放入sources 中,重启Eclipse即可.
联系客服