您的位置:首页 > 大数据 > 人工智能

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

2015-11-21 09:46 561 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: