Getting "Gradle sync failed: Please use JDK 8 or newer" under version 3.3

Viewed 4097

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.

Screenshot 1

Screenshot 2

3 Answers

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:

  1. SDK path should not contain white space.
  2. Gradle sync failed. Please use JDK 8 or newer.

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.

Related