The source attachment does not contain the source for the file解决方案

朴灿烈づ我的快乐病毒、 2022-08-10 10:55 164阅读 0赞

The source attachment does not contain the source for the file

解决方案

没法在Eclipse里面查看Android源码,具体表现为[ctrl+左键]跳转时出现:
The source attachment does not contain the source for the file.

把Android SDK Manager 里面该Install的都Install了。

参考:
http://stackoverflow.com/questions/14942851/the-source-attachment-does-not-contain-the-source-for-the-file-layoutinflater-cl

添加时仍然是相同的错误。

最后终于找出原因,是自己犯蠢了:

在 Source Attachment Configuration界面要选择源码的目录,而不是选择Android.jar的目录。

正确添加的目录应该是:
D:\adt-bundle-windows-x86-20131030\sdk\sources\android-19

发表评论

表情:
评论列表 (有 0 条评论,164人围观)

还没有评论,来说两句吧...

相关阅读