Duplicate id @+id/imageView, already defined earlier in this layout,android

原文地址http://www.thinksaas.cn/topics/0/448/448554.html

 其實這個訊息也是可以解掉的,當然最簡單的解法就是你不要使用相同的id就好了。不過萬一你是幫別人改code的時候跳出來呢?那也有解法可以解。


    1. 首先從Window點入,選擇list最下面的Preferences
    2. 選擇Android,搜尋DuplicateIds,你可以在上方的text column中輸入du...去篩選
    3. 在Severity下方的彈出式選單中選擇Warning(原始應該是fatal)
    4. 點選ok,讓系統自己跑一次,就完成了

 

原文地址:https://www.cnblogs.com/yangfengwu/p/6130901.html