日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

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

 xsx2008 2014-06-14

Android的ADT調(diào)試期間出現(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中調(diào)試Android程序時給jar包添加源碼以便源碼級調(diào)試

當(dāng)看不到Class File Editor中可以顯示讓自己選擇源碼的是,就有對應(yīng)的:

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 belong 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.properties

D:\DevRoot\xxxx\TFS_Root\Main\src\MobileHandHeld\libs>

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

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

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

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

libraries android dependencies usb serial jar source attachment none modifiable

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

去確認(rèn)了自己的ADT版本,是21,不是17:

current adt version is 21 not 17

無法查看第三方j(luò)ar包源碼解決

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

根本找不到什么Build Path:

right click usb serial jar not build path

包括對應(yīng)的Property中,也沒有什么Build Path:

usb serial lib properties not build path

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

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

我此處,不希望去改動目錄結(jié)構(gòu),必須還是把jar要放在libs中。

eclipse 遭遇及解決 debug調(diào)試時 因Android Dependencies而Source not found

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

debug mode right click thread edit source lookup

Default->Add->Java Project

edit the source lookup path default add java project ok

choose related source code project then ok

added usb serial project then ok

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

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

then redo debug f5 can into source code for usb serial prober

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

項(xiàng)目中,新建lib文件夾,把對應(yīng)的jar,從默認(rèn)加入到的libs文件夾中,移到這個lib文件夾

然后右擊對應(yīng)的jar,然后通過Build Path,去添加對應(yīng)的源碼。

在調(diào)試期間,即Debug視圖下,

右擊那個Debug的Tab中的當(dāng)前的Thread

Edit Source Lookup->Default->Add->Java Project->選擇你的jar所對應(yīng)的源碼所在的項(xiàng)目->OK->OK

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

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

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多