After trying to build my project in Mac OS X El Capitan I've got this error:
Error:Gradle: A problem occurred configuring project ':app'. Buildtools 24.0.2 requires Java 1.8 or above. Current JDK version is 1.7.
I have project with build.gradle
section like this:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Also:
Project SDK 1.8.0_101
App Module: android sdk 24, jdk 1.8,
Root Module: android sdk 24, jdk 1.8
compileSdkVersion 24
buildToolsVersion '24.0.2'
minSdkVersion 16
targetSdkVersion 24
retrolambda
P.S.: I successfully built this project from command line.