When I update gradle from 2.14 to 3.0, Android Studio gradle sync with this error.
I can build apk in command line with ./gradlew build.
Gradle 3.0 does not support running on Java 6. Make sure you configured Java 7 in IntelliJ.
I use JAVA 8, and I update Android Studio to 2.2 RC so everything is ok
I am using with java 8 still having the issue with Intelllij 15.0.6 with Gradle 3.0. And it was working fine with 2.141.