1、Duplicate id @+id/iv_avatar, already defined earlier in this layout
Note : If you wish to have certain Views to have the same ID then you may have to suppress this Lint Error message, you can achieve
this by going to Preferences -> Android -> Lint Error Checking and search DuplicateIds, change its severity from Fatal to Warning.
Clean + Build your project and you may no more get the duplicate id error.
2、Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one
Eclipse -> Preferences -> Android -> Lint Error Checking -> Issue -> Security -> HardCodeDebugMode -> Severity: -> Warning即可
3、eclipse识别不到手机
在cmd模式下输入netstat -aon|findstr "5037"查看,出现如下:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6540
这说明7852使用了5037端口,不行,这要查出这是哪个厮搞得鬼
然后使用命令:tasklist|findstr "7852",查询是哪厮占用: