1.項(xiàng)目右鍵 ->android tools->Fix Project

2.如果不可以,檢查Project->Properties->Java Compiler

確認(rèn)Compiler compliance level被設(shè)置為1.6,并且Enable project specific settings.