Running via command line, here is the error I see:
FAILURE: Build failed with an exception.
* Where:
Script '/<>/gradle/noDependencyResolutionDuringConfiguration.gradle' line: 10
* What went wrong:
Failed to notify dependency resolution listener.
> Configuration userGuideStyleSheets of project docs is being resolved at configuration time.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.166 secs
@eriwen The picture I posted says: “Import Project from Gradle” at the top. If you go “File” -> “Open” -> “build.gradle”, it will say the same thing.
It turns out I have gradle 2.12 installed via homebrew and did not run with gradlew(like I should be) which the project was using 2.13-rc-1. After running gradlew idea it seems to work fine.
@eriwen
It turns out that my local gradle.properties had org.gradle.configureondemand=true turned on. I simply commented it out and it works fine. Take caution with the “incubating mode”.
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Run gradle as a daemon
org.gradle.daemon=true
# Specifies the JVM arguments - Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# Enables incubating mode
# org.gradle.configureondemand=true
# Parallel builds
# org.gradle.parallel=true
# Disables pre-Dex of builds on first build
# project.android.dexOptions.preDexLibraries=false