File > Project Structure > Project Settings > Modules > your Module name > 

然后更新对应module的jdk为1.7