0

Failing to import project. Gives Unsupported Major.Minor version 51 error when importing from build.gradle

matt burns
  • 24,742
  • 13
  • 105
  • 107

1 Answers1

0

(copied from another solution)

Solution:

Solution for me was to edit /Applications/IntelliJ IDEA 14 CE.app/Contents/Info.plist

Find these two lines towards the bottom:

<key>JVMVersion</key>
<string>1.6*</string>

Change it to 1.7*, so that it looks like so:

<key>JVMVersion</key>
<string>1.7*</string>

Then restart your IDE.

Community
  • 1
  • 1
matt burns
  • 24,742
  • 13
  • 105
  • 107