I checked every thread related to that error. But I couldn't find the appropriate answer. I have additional error too. Check out the screenshots.


I checked every thread related to that error. But I couldn't find the appropriate answer. I have additional error too. Check out the screenshots.


error window
Here's what worked for me!
1. First verify that your JDK is indeed higher than JDK8
jdk version
2. Press "Ctrl+Alt+Shift+S" to open project structure
enter image description here
3. Then I selected "Use the embedded JDK"
4. Click OK and retry it.
That should solve it.
I was facing same problem, getting these two kinda errors:
Solution for me was to set proper SDK path with no white space in path first and than choose JDK path. After setting path I've synced the project and tada it worked...
Thanks.