title: Intellij error when importing build.gradle
body: <p>If I import a Java project into Intellij, then go to the command line and run gradle idea to tell Intellij that it's a gradle project. I get the following.
  <code>
    com/android/builder/model/NativeAndroidProject: Unsupported major.minor 
    version 52.0 Please use JDK8 or newer.
    Error: Download JDK8
    Select a JDK from the FileSystem.
  </code></p>
  
  <p>I click on the link and it takes me to Project Structure, SDK Location with 3 options, Android SDK Location, JDK Location (which is set right) and Android NDK location. Both android fields are blank but it gives me an error, The Android SDK location is inside the IDEA install location. Any attempt to set these directories results in sdk not found. I'm running version 2017.2.1.</p>
  
  <p>Any time I try to sync gradle, I get that same message as above, even if I select jdk 8. Also, this is not an Android project and I don't have anything even remotely close to Android specific in the project. What is causing this and how do I fix?</p>
  
  <p><a href="https://i.stack.imgur.com/kqBvs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqBvs.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/45RIt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/45RIt.png" alt="enter image description here"></a></p>
  
  <p>Can't post the build.gradle but here are the plugins
    <code>
    apply plugin: 'java'
    apply plugin: 'idea'
    apply plugin: 'groovy'
    apply plugin: 'application'
    apply plugin: 'maven'
    </code></p>