The source attachment does not contain the source for the file Activity.class
? ? ? ? 最近利用Eclipse寫(xiě)android程序,在debug時(shí),總是提示The source attachment does not contain the source for the file Activity.class.
在網(wǎng)上查了很多,最靠譜的說(shuō)法是代碼沒(méi)有與文件關(guān)聯(lián),解決的辦法在這2個(gè)blog上寫(xiě)了http://blog.csdn.net/xinzheng_wang/article/details/7428824
http://blog.sina.com.cn/s/blog_724d24bf01010ag9.html,但是這里面在platforms里的android-17下建一個(gè)sources文件夾然后把a(bǔ)ndroid源碼解壓到sources文件夾下,
再點(diǎn)擊add attched source,選擇external folder選擇剛剛建立的那個(gè)sources文件夾---確定就可以。
但是這個(gè)方法沒(méi)能解決我的問(wèn)題,我在android-17下建立sources文件夾沒(méi)有效果,但是在SDK目錄下有一個(gè)sources文件夾,所以點(diǎn)擊剛剛的add attched source后選擇SDK目錄下的sources文件夾,再確定,就解決了我的問(wèn)題。
轉(zhuǎn)載于:https://www.cnblogs.com/shuqiangji/archive/2013/06/07/3123832.html
總結(jié)
以上是生活随笔為你收集整理的The source attachment does not contain the source for the file Activity.class的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: iOS 如何让IOS应用从容地崩溃
- 下一篇: Oracle Advisor