Despite specifying JDK 1.7 in all project settings (including in File -> Project Structure -> Project :: Project SDK), the following error is produced by
File -> Project Structure -> Project :: Project SDK
I had the following property working for me in IntelliJ 2017
1.8