Configure > Project Defaults > Project Structure SDK Location > JDK Location > Set JAVA JDK upper 1.8 version