I'm trying to migrate an android project from Idea structure to Gradle. I have got to the point where I can build the project from the command line with gradlew, but in Idea I get this error:
compileSdkVersion android-23 requires compiling with JDK 7
Download JDK 7
Select a JDK from the File System
Open build.gradle File
If I click on the "Select a JDK from the File System" link it takes me to the Project Structure dialog where the JDK location has a path to Java 1.6. If I change this to the path to Java 1.7 and click OK I get the same error. Going back to the dialog I see that the path has reverted to Java 1.6!