[eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it
生活随笔
收集整理的這篇文章主要介紹了
[eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
工作項(xiàng)目是多項(xiàng)目依賴,突然發(fā)現(xiàn)無法跳轉(zhuǎn)到依賴項(xiàng)目源碼,也無法debug,錯(cuò)誤提示如下:
The JAR of this class file belongs to container 'Android Dependencies' which does not allow modifications to source attachments on its entries
網(wǎng)上看了N多方法都無效啊……叫個(gè)糾結(jié)呀……最終我自力更生了……
對比了下我項(xiàng)目和同事項(xiàng)目里各種配置文件的差異,然后發(fā)現(xiàn).classpath文件里頭順序有點(diǎn)不一致。
問題就出在我標(biāo)紅的這兩條上……把這兩位置換一換,src放在gen前面就好了……
然后我把所有依賴項(xiàng)目的classpath文件中這兩都換了,搞定……糾結(jié)了一天的問題終于搞定了……
原因未知……有知道的麻煩告訴我一下……
總結(jié)
以上是生活随笔為你收集整理的[eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 电子科技大学《图论及其应用》复习总结--
- 下一篇: 2018Android面试宝典