1.項目右鍵 ->android tools->Fix Project
2.如果不可以,檢查Project->Properties->Java Compiler確認Compiler compliance level被設置為1.6,并且Enable project specific settings.