
在 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.
也就是正常渠道关联不上源代码,那使用手动来引入 android.jar,用传统的方式来关联源代码如何,源码是能看到了,可是出现个错误。还是 Google 下吧,找到了 Browsing Android Source in Eclipse,他给我们提供了两种解决办法:
#Solution 1 阅读全文 >>