The source attachment does not contain the source for the file Activity.class


        最近利用Eclipse写android程序,在debug时,总是提示The source attachment does not contain the source for the file Activity.class.

在网上查了很多,最靠谱的说法是代码没有与文件关联,解决的办法在这2个blog上写了http://blog.csdn.net/xinzheng_wang/article/details/7428824
http://blog.sina.com.cn/s/blog_724d24bf01010ag9.html,但是这里面在platforms里的android-17下建一个sources文件夹然后把android源码解压到sources文件夹下,

再点击add attched source,选择external folder选择刚刚建立的那个sources文件夹---确定就可以。

但是这个方法没能解决我的问题,我在android-17下建立sources文件夹没有效果,但是在SDK目录下有一个sources文件夹,所以点击刚刚的add attched source后选择SDK目录下的sources文件夹,再确定,就解决了我的问题。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM