I'm a newer to
Gradle 3.1 requires Java 7 or later to run. Your build is currently configured to use Java 6
2016-10-30 14:25:06,941  INFO - .BaseProjectImportErrorHandler - Failed to import Gradle project at '/Users/famoss/Downloads/btrace-master/gradle'
org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle installation '/Users/famoss/Downloads/gradle-3.1'.
Caused by: org.gradle.internal.jvm.UnsupportedJavaRuntimeException: Gradle 3.1 requires Java 7 or later to run. You are currently using Java 6.
Update the idea version to
2016.2.5 and the problem solved.