乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      【已解決】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程序時(shí)給jar包添加源碼以便源碼級(jí)調(diào)試

      當(dāng)看不到Class File Editor中可以顯示讓自己選擇源碼的是,就有對(duì)應(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),此處我這里,根本就沒有對(duì)應(yīng)的source.jar的包。

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

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

      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

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

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

      根本找不到什么Build Path:

      right click usb serial jar not build path

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

      usb serial lib properties not build path

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

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

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

      eclipse 遭遇及解決 debug調(diào)試時(shí) 因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界面中,并不會(huì)變化,還是不能同步看到源碼。

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

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

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

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

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

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

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

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

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

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

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

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多