解决方法

File-->Project-->Structrue-->SDK Location-->JDK location  

Use embedded JDK 前面勾去掉,指定一个JDK地址。