ERROR MESSAGE:
Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

Change in project structure:
You have to change the jdk location in project structure.
Just Follow the steps:
Go to file -> project structure -> sdk location
Unselect Use embedded jdk(recommended)
Then Change the jdk location to C)Program Files/java/jdk1.x.x_xxx
Where x is dependent on the JDK version you have installed locally.