日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

[eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it

發布時間:2024/8/1 48 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

工作項目是多項目依賴,突然發現無法跳轉到依賴項目源碼,也無法debug,錯誤提示如下:

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


網上看了N多方法都無效啊……叫個糾結呀……最終我自力更生了……


對比了下我項目和同事項目里各種配置文件的差異,然后發現.classpath文件里頭順序有點不一致。


<classpath><span style="color:#ff6666;"><classpathentry kind="src" path="gen"/> <classpathentry kind="src" path="src"/></span>...... </classpath>
問題就出在我標紅的這兩條上……把這兩位置換一換,src放在gen前面就好了……

然后我把所有依賴項目的classpath文件中這兩都換了,搞定……糾結了一天的問題終于搞定了……


原因未知……有知道的麻煩告訴我一下……

總結

以上是生活随笔為你收集整理的[eclipse error]'Android Dependencies' which does not allow modifications to source attachments on it的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。