免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
【已解決】Android的ADT調試期間出現(xiàn)提示:The Jar of this class file belongs to container ‘Android Dependencies’ whic

Android的ADT調試期間出現(xiàn)提示:The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries

【未解決】Eclipse的ADT中調試Android程序時給jar包添加源碼以便源碼級調試

當看不到Class File Editor中可以顯示讓自己選擇源碼的是,就有對應的:

The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries

所以要去搞清楚到底是什么意思。

The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries

D:\DevRoot\xxxx\TFS_Root\Main\src\MobileHandHeld\libs>touch usb-serial-for-android-v0.2.1-pre.jar.propertiesD:\DevRoot\xxxx\TFS_Root\Main\src\MobileHandHeld\libs>

想要接著加src和javadoc配置呢,

突然發(fā)現(xiàn),此處我這里,根本就沒有對應的source.jar的包。

所以沒法直接加上述類似的配置。

2.后來自己去找到對應的dependencies的位置,結果卻發(fā)現(xiàn),source attachment,根本無法手動加源碼:

The jar of this class file belongs to container ‘Android Dependencies’ which does not allow source modifications to source attachments on its entries

去確認了自己的ADT版本,是21,不是17:

無法查看第三方jar包源碼解決

usb-serial-for-android-v0.2.1-pre.jar

根本找不到什么Build Path:

包括對應的Property中,也沒有什么Build Path:

Android ADT 18+ 添加第三方源碼包掛載以及查看問題解決

不要把jar放在libs,而放在lib中,就可以去通過Build Path添加源碼了。

我此處,不希望去改動目錄結構,必須還是把jar要放在libs中。

eclipse 遭遇及解決 debug調試時 因Android Dependencies而Source not found

去Debug視圖下,右擊線程,選擇:

Default->Add->Java Project

當前Class File Editor界面中,并不會變化,還是不能同步看到源碼。

繼續(xù)調試,或者說,重新調試,再去單步F5執(zhí)行的話,就可以看到源碼了:

如此,真正的,解決了此問題。

項目中,新建lib文件夾,把對應的jar,從默認加入到的libs文件夾中,移到這個lib文件夾

然后右擊對應的jar,然后通過Build Path,去添加對應的源碼。

在調試期間,即Debug視圖下,

右擊那個Debug的Tab中的當前的Thread

Edit Source Lookup->Default->Add->Java Project->選擇你的jar所對應的源碼所在的項目->OK->OK

再繼續(xù)debug或者是重新debug,即可實現(xiàn):F5可以進入對應的源碼,進行源碼調試了。

即使你沒有源碼所對應的項目,估計通過添加對應的文件夾(Absolute File Path或File System Directory之類的),應該也是可以添加源碼的。

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Android工程中三種庫的區(qū)別:Private Libraries、Referenced Libraries、Dependency Libraries
Unknown Source的出現(xiàn)及解決
解決 Eclipse 中 Android.jar 無法關聯(lián)源代碼的辦法
linux
Android Studio:如何處理不同引用庫(module)里jar的重復引用
Experimental Plugin User Guide(From Android Tools Project Site) | 子勰的博客
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服